From 0c96e9f7ebec2d1ba9b1ab7def61db0abe2494dd Mon Sep 17 00:00:00 2001 From: FREDERICK Date: Sun, 2 Oct 2022 18:00:39 +0200 Subject: [PATCH 1/2] Add default log displaying help text --- src/i18n/locale/default.json | 1 + src/views/Commands.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/i18n/locale/default.json b/src/i18n/locale/default.json index 532d7f338..0464c49a4 100644 --- a/src/i18n/locale/default.json +++ b/src/i18n/locale/default.json @@ -71,6 +71,7 @@ "check": "Check", "commands": "Commands", "commands-send": "Click here to send your command", + "commands-default": "For a list of available commands type: commands", "config": "Config", "config-no-changes": "You did not make any changes!", "confirm": "Confirm", diff --git a/src/views/Commands.vue b/src/views/Commands.vue index 7ecab75c3..6a9b7fa14 100644 --- a/src/views/Commands.vue +++ b/src/views/Commands.vue @@ -241,6 +241,7 @@ this.asfCommands = await this.loadCommands(); }, mounted() { + this.log.push({ type: 'in', time: this.getTimestamp(), message: this.$t('commands-default') }); this.$refs['terminal-input'].focus(); }, methods: { From a23d05dbb0458a01cf6eef545de59dfecb0e3933 Mon Sep 17 00:00:00 2001 From: FREDERICK Date: Sun, 2 Oct 2022 18:06:49 +0200 Subject: [PATCH 2/2] Add info about help command --- src/i18n/locale/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/locale/default.json b/src/i18n/locale/default.json index 0464c49a4..7867f4938 100644 --- a/src/i18n/locale/default.json +++ b/src/i18n/locale/default.json @@ -71,7 +71,7 @@ "check": "Check", "commands": "Commands", "commands-send": "Click here to send your command", - "commands-default": "For a list of available commands type: commands", + "commands-default": "For a list of available commands type: commands\nFor a short description of a command type: help ", "config": "Config", "config-no-changes": "You did not make any changes!", "confirm": "Confirm",