Reset history to end when command is sent
This commit is contained in:
parent
3a97a89d20
commit
b9368eca45
|
@ -61,6 +61,7 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
sendCommand: function () {
|
sendCommand: function () {
|
||||||
|
this.commandHistoryIndex = -1;
|
||||||
this.commandHistory.unshift(this.command);
|
this.commandHistory.unshift(this.command);
|
||||||
this.$parent.$emit('send-command', this.command);
|
this.$parent.$emit('send-command', this.command);
|
||||||
this.command = '';
|
this.command = '';
|
||||||
|
|
Loading…
Reference in New Issue