From b0d2b5328107a9a2018132938fb5a9efcd77fc50 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 8 Oct 2017 18:41:44 +0900 Subject: use mode in console message --- src/console/actions/console.js | 7 ++++--- src/console/actions/index.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/console/actions') diff --git a/src/console/actions/console.js b/src/console/actions/console.js index 01d9a9b..aacc21a 100644 --- a/src/console/actions/console.js +++ b/src/console/actions/console.js @@ -14,9 +14,9 @@ const showError = (text) => { }; }; -const hide = () => { +const hideCommand = () => { return { - type: actions.CONSOLE_HIDE + type: actions.CONSOLE_HIDE_COMMAND, }; }; @@ -40,5 +40,6 @@ const completionPrev = () => { }; export { - showCommand, showError, hide, setCompletions, completionNext, completionPrev + showCommand, showError, hideCommand, + setCompletions, completionNext, completionPrev }; diff --git a/src/console/actions/index.js b/src/console/actions/index.js index a5d03bc..3a6cf07 100644 --- a/src/console/actions/index.js +++ b/src/console/actions/index.js @@ -3,7 +3,7 @@ export default { CONSOLE_SHOW_COMMAND: 'console.show.command', CONSOLE_SET_COMPLETIONS: 'console.set.completions', CONSOLE_SHOW_ERROR: 'console.show.error', - CONSOLE_HIDE: 'console.hide', + CONSOLE_HIDE_COMMAND: 'console.hide.command', CONSOLE_COMPLETION_NEXT: 'console.completion.next', CONSOLE_COMPLETION_PREV: 'console.completion.prev', }; -- cgit v1.2.3