aboutsummaryrefslogtreecommitdiff
path: root/src/console/components
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-06 20:13:15 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-11-11 16:16:01 +0900
commitbe37c42d28e4d32609b5972ee937a269d18c0f67 (patch)
tree8b811c3dccd38292e8ecc14d0108a6352476a4f4 /src/console/components
parentcb4b26e03f97ff2f1789f7a59efe2973ab1d0eb9 (diff)
show find in console
Diffstat (limited to 'src/console/components')
-rw-r--r--src/console/components/console.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index 7997f24..d09e252 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -68,8 +68,10 @@ export default class ConsoleComponent {
update() {
let state = this.store.getState();
if (this.prevState.mode !== 'command' && state.mode === 'command') {
- this.showCommand(state.commandText);
- } else if (state.mode !== 'command') {
+ this.showCommand(state.consoleText);
+ } else if (this.prevState.mode !== 'find' && state.mode === 'find') {
+ this.showFind();
+ } else if (state.mode !== 'command' && state.mode !== 'find') {
this.hideCommand();
}