aboutsummaryrefslogtreecommitdiff
path: root/src/console/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-03-04 21:38:29 +0900
committerGitHub <noreply@github.com>2018-03-04 21:38:29 +0900
commit72bf3cc2bdcc63864e064a64f7459aba004f4538 (patch)
tree4a34e2d408cd4f7d29e634b98dea2c07ca10ece9 /src/console/actions
parent0211d7781fffdb0f4e9a5e523f0f6ea24c5c8db8 (diff)
parent5cd8c81fda2f07bc6ca5b1ee9264a02fae16c5c0 (diff)
Merge pull request #354 from ueokande/hide-console
Hide console
Diffstat (limited to 'src/console/actions')
-rw-r--r--src/console/actions/console.js8
-rw-r--r--src/console/actions/index.js1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/console/actions/console.js b/src/console/actions/console.js
index 2cf8e8d..f80045f 100644
--- a/src/console/actions/console.js
+++ b/src/console/actions/console.js
@@ -1,5 +1,11 @@
import actions from 'console/actions';
+const hide = () => {
+ return {
+ type: actions.CONSOLE_HIDE,
+ };
+};
+
const showCommand = (text) => {
return {
type: actions.CONSOLE_SHOW_COMMAND,
@@ -61,6 +67,6 @@ const completionPrev = () => {
};
export {
- showCommand, showFind, showError, showInfo, hideCommand, setConsoleText,
+ hide, showCommand, showFind, showError, showInfo, hideCommand, setConsoleText,
setCompletions, completionNext, completionPrev
};
diff --git a/src/console/actions/index.js b/src/console/actions/index.js
index a85e329..b394179 100644
--- a/src/console/actions/index.js
+++ b/src/console/actions/index.js
@@ -1,5 +1,6 @@
export default {
// console commands
+ CONSOLE_HIDE: 'console.hide',
CONSOLE_SHOW_COMMAND: 'console.show.command',
CONSOLE_SHOW_ERROR: 'console.show.error',
CONSOLE_SHOW_INFO: 'console.show.info',