Show registered context menu items for both browser and localhost

pull/1747/head
ioedeveloper 3 years ago
parent c2d63b6969
commit db7b4e381e
  1. 8
      libs/remix-ui/workspace/src/lib/reducers/workspace.ts

@ -504,11 +504,11 @@ export const browserReducer = (state = browserInitialState, action: Action) => {
...state,
browser: {
...state.browser,
contextMenu: state.mode === 'browser' ? addContextMenuItem(state, payload) : state.browser.contextMenu
contextMenu: addContextMenuItem(state, payload)
},
localhost: {
...state.localhost,
contextMenu: state.mode === 'localhost' ? addContextMenuItem(state, payload) : state.localhost.contextMenu
contextMenu: addContextMenuItem(state, payload)
}
}
}
@ -520,11 +520,11 @@ export const browserReducer = (state = browserInitialState, action: Action) => {
...state,
browser: {
...state.browser,
contextMenu: state.mode === 'browser' ? removeContextMenuItem(state, payload) : state.browser.contextMenu
contextMenu: removeContextMenuItem(state, payload)
},
localhost: {
...state.localhost,
contextMenu: state.mode === 'localhost' ? removeContextMenuItem(state, payload) : state.localhost.contextMenu
contextMenu: removeContextMenuItem(state, payload)
}
}
}

Loading…
Cancel
Save