Show info on yanked
This commit is contained in:
parent
b0d2b53281
commit
7ac00fce6f
12 changed files with 84 additions and 31 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue