Show info on yanked

This commit is contained in:
Shin'ya Ueoka 2017-10-08 19:08:51 +09:00
parent b0d2b53281
commit 7ac00fce6f
12 changed files with 84 additions and 31 deletions

View file

@ -57,6 +57,11 @@ export default function reducer(state = defaultState, action = {}) {
mode: 'error',
messageText: action.text,
});
case actions.CONSOLE_SHOW_INFO:
return Object.assign({}, state, {
mode: 'info',
messageText: action.text,
});
case actions.CONSOLE_HIDE_COMMAND:
return Object.assign({}, state, {
mode: state.mode === 'command' ? '' : state.mode,