add hide action for console
This commit is contained in:
parent
0211d7781f
commit
37410b874f
6 changed files with 26 additions and 1 deletions
|
@ -53,6 +53,10 @@ const nextConsoleText = (completions, group, item, defaults) => {
|
|||
|
||||
export default function reducer(state = defaultState, action = {}) {
|
||||
switch (action.type) {
|
||||
case actions.CONSOLE_HIDE:
|
||||
return Object.assign({}, state, {
|
||||
mode: '',
|
||||
});
|
||||
case actions.CONSOLE_SHOW_COMMAND:
|
||||
return Object.assign({}, state, {
|
||||
mode: 'command',
|
||||
|
|
Reference in a new issue