listen on network

pull/1857/head
bunsenstraat 3 years ago
parent 671a70c46a
commit 4dba176e09
  1. 4
      libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
  2. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -106,8 +106,8 @@ export const registerErrorScriptRunnerAction = (on, commandName, commandFn, disp
})
}
export const listenOnNetworkAction = async (event, isListening) => {
event.trigger('listenOnNetWork', [isListening])
export const listenOnNetworkAction = async (plugins, isListening) => {
plugins.txListener.setListenOnNetwork(isListening)
}
export const initListeningOnNetwork = (plugins, dispatch: React.Dispatch<any>) => {

@ -316,7 +316,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const listenOnNetwork = (e: any) => {
const isListening = e.target.checked
// setIsListeningOnNetwork(isListening)
listenOnNetworkAction(event, isListening)
listenOnNetworkAction(props.plugin, isListening)
}
const onChange = (event: any) => {

Loading…
Cancel
Save