Reset history to end when command is sent
This commit is contained in:
parent
3a97a89d20
commit
b9368eca45
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
|||
|
||||
methods: {
|
||||
sendCommand: function () {
|
||||
this.commandHistoryIndex = -1;
|
||||
this.commandHistory.unshift(this.command);
|
||||
this.$parent.$emit('send-command', this.command);
|
||||
this.command = '';
|
||||
|
|
Loading…
Add table
Reference in a new issue