|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -536,11 +536,11 @@ export const browserReducer = (state = browserInitialState, action: Action) => { |
|
|
|
|
...state, |
|
|
|
|
browser: { |
|
|
|
|
...state.browser, |
|
|
|
|
expandPath: state.mode === 'browser' ? payload : state.browser.expandPath |
|
|
|
|
expandPath: payload |
|
|
|
|
}, |
|
|
|
|
localhost: { |
|
|
|
|
...state.localhost, |
|
|
|
|
expandPath: state.mode === 'localhost' ? payload : state.localhost.expandPath |
|
|
|
|
expandPath: payload |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|