Skip to content

Commit b9368ec

Browse files
committed
Reset history to end when command is sent
1 parent 3a97a89 commit b9368ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/assets/scripts/components/server/subpages/ConsolePage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
6262
methods: {
6363
sendCommand: function () {
64+
this.commandHistoryIndex = -1;
6465
this.commandHistory.unshift(this.command);
6566
this.$parent.$emit('send-command', this.command);
6667
this.command = '';

0 commit comments

Comments
 (0)