listen on network

pull/5370/head
bunsenstraat 3 years ago
parent 8a5c2adcd0
commit 13328a3b7a
  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