From b9368eca451217541f54702d86ca71d31abc828a Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 21 Jul 2018 16:23:15 -0700 Subject: [PATCH] Reset history to end when command is sent --- .../assets/scripts/components/server/subpages/ConsolePage.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/scripts/components/server/subpages/ConsolePage.vue b/resources/assets/scripts/components/server/subpages/ConsolePage.vue index 9d0b61124..f8a1eb8cf 100644 --- a/resources/assets/scripts/components/server/subpages/ConsolePage.vue +++ b/resources/assets/scripts/components/server/subpages/ConsolePage.vue @@ -61,6 +61,7 @@ methods: { sendCommand: function () { + this.commandHistoryIndex = -1; this.commandHistory.unshift(this.command); this.$parent.$emit('send-command', this.command); this.command = '';