diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-07 07:51:39 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-07 08:15:04 +0900 |
commit | 45368384d1bbcbc005bf1eb3cdc7f7c8b137c28c (patch) | |
tree | 7c6e7ed12322ff6d74169e73524e8ffb5ce15a12 /src/actions/console.js | |
parent | 4cb17031d11d76275de51e31218fb87359e7d826 (diff) |
remove completion actions/reducer
Diffstat (limited to 'src/actions/console.js')
-rw-r--r-- | src/actions/console.js | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/actions/console.js b/src/actions/console.js index ba1fbeb..4183489 100644 --- a/src/actions/console.js +++ b/src/actions/console.js @@ -7,6 +7,19 @@ const showCommand = (text) => { }; }; +const showError = (text) => { + return { + type: actions.CONSOLE_SHOW_ERROR, + text: text + }; +}; + +const hide = () => { + return { + type: actions.CONSOLE_HIDE + }; +}; + const setCompletions = (completions) => { return { type: actions.CONSOLE_SET_COMPLETIONS, @@ -14,17 +27,18 @@ const setCompletions = (completions) => { }; }; -const showError = (text) => { +const completionNext = () => { return { - type: actions.CONSOLE_SHOW_ERROR, - text: text + type: actions.CONSOLE_COMPLETION_NEXT, }; }; -const hide = () => { +const completionPrev = () => { return { - type: actions.CONSOLE_HIDE + type: actions.CONSOLE_COMPLETION_PREV, }; }; -export { showCommand, setCompletions, showError, hide }; +export { + showCommand, showError, hide, setCompletions, completionNext, completionPrev +}; |