add hide action for console

This commit is contained in:
Shin'ya Ueoka 2018-03-04 17:57:56 +09:00
parent 0211d7781f
commit 37410b874f
6 changed files with 26 additions and 1 deletions

View file

@ -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',