diff --git a/lib/www/client/source/src/components/help-dialog.vue b/lib/www/client/source/src/components/help-dialog.vue index 171e683..65c1c66 100644 --- a/lib/www/client/source/src/components/help-dialog.vue +++ b/lib/www/client/source/src/components/help-dialog.vue @@ -14,26 +14,42 @@ - - Dougal user support - + + + + Dougal user support + - -

You can get help or report a problem by sending an email to {{email}}. Please include as much information as possible about your problem or question—screenshots are often a good idea, and data files may also be attached.

+ +

You can get help or report a problem by sending an email to {{email}}. Please include as much information as possible about your problem or question—screenshots are often a good idea, and data files may also be attached.

-

When you write to the above address a ticket will be automatically created in the project's issue tracking system.

+

When you write to the above address a ticket will be automatically created in the project's issue tracking system.

- -
- You are using Dougal version: -
    -
  • {{clientVersion}} (client)
  • -
  • {{serverVersion}} (server)
  • -
-
-
+ +
+ You are using Dougal version: +
    +
  • {{clientVersion}} (client)
  • +
  • {{serverVersion}} (server)
  • +
+
+
-
+
+
+ + + + Dougal release notes + + + +
{{ versionHistory }}
+
+ + +
+
@@ -57,6 +73,7 @@ Report a bug + + + + mdi-history + @@ -98,13 +126,21 @@ export default { feed: btoa(encodeURIComponent("https://gitlab.com/wgp/dougal/software.atom?feed_token=XSPpvsYEny8YmH75Nz5W")), clientVersion: process.env.DOUGAL_FRONTEND_VERSION ?? "(unknown)", serverVersion: null, + versionHistory: null, + page: "support" }; }, methods: { async getServerVersion () { - const version = await this.api(['/version', {}, null, {silent:true}]); - this.serverVersion = version?.tag ?? "(unknown)"; + if (!this.serverVersion) { + const version = await this.api(['/version', {}, null, {silent:true}]); + this.serverVersion = version?.tag ?? "(unknown)"; + } + if (!this.versionHistory) { + const history = await this.api(['/version/history?count=1', {}, null, {silent:true}]); + this.versionHistory = history[this.serverVersion.replace(/-.*$/, "")] ?? null; + } }, ...mapActions(["api"])