diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-08 20:01:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-08 20:01:57 +0900 |
commit | 8b9125871b59d915324176ab959bb0aed20a727a (patch) | |
tree | a10db125bd25c1447bb08de2ef156c010243f019 /src/console/actions | |
parent | bbf90e77e99846c970118744066fbc21006761b5 (diff) | |
parent | 7ac00fce6f6c431f96c531179c6af3796df7e07a (diff) |
Merge pull request #24 from ueokande/yank-url
Yank url
Diffstat (limited to 'src/console/actions')
-rw-r--r-- | src/console/actions/console.js | 14 | ||||
-rw-r--r-- | src/console/actions/index.js | 5 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/console/actions/console.js b/src/console/actions/console.js index 01d9a9b..0d891bb 100644 --- a/src/console/actions/console.js +++ b/src/console/actions/console.js @@ -14,9 +14,16 @@ const showError = (text) => { }; }; -const hide = () => { +const showInfo = (text) => { return { - type: actions.CONSOLE_HIDE + type: actions.CONSOLE_SHOW_INFO, + text: text + }; +}; + +const hideCommand = () => { + return { + type: actions.CONSOLE_HIDE_COMMAND, }; }; @@ -40,5 +47,6 @@ const completionPrev = () => { }; export { - showCommand, showError, hide, setCompletions, completionNext, completionPrev + showCommand, showError, showInfo, hideCommand, + setCompletions, completionNext, completionPrev }; diff --git a/src/console/actions/index.js b/src/console/actions/index.js index a5d03bc..c4f88cd 100644 --- a/src/console/actions/index.js +++ b/src/console/actions/index.js @@ -1,9 +1,10 @@ export default { // console commands CONSOLE_SHOW_COMMAND: 'console.show.command', - CONSOLE_SET_COMPLETIONS: 'console.set.completions', CONSOLE_SHOW_ERROR: 'console.show.error', - CONSOLE_HIDE: 'console.hide', + CONSOLE_SHOW_INFO: 'console.show.info', + CONSOLE_HIDE_COMMAND: 'console.hide.command', + CONSOLE_SET_COMPLETIONS: 'console.set.completions', CONSOLE_COMPLETION_NEXT: 'console.completion.next', CONSOLE_COMPLETION_PREV: 'console.completion.prev', }; |