diff --git a/frontend/src/components/HomePage.vue b/frontend/src/components/HomePage.vue index 040192b..b5d5606 100644 --- a/frontend/src/components/HomePage.vue +++ b/frontend/src/components/HomePage.vue @@ -10,7 +10,10 @@ Rtin -
+
+

+ v{{ version }} +

@@ -253,6 +256,7 @@ import { ref, nextTick } from 'vue' import { UnlistenFn, listen } from '@tauri-apps/api/event' import { invoke } from "@tauri-apps/api/core" import { getCurrent } from '@tauri-apps/api/webview'; +import { getVersion } from '@tauri-apps/api/app'; import { enable, isEnabled } from "@tauri-apps/plugin-autostart"; import { isPermissionGranted, requestPermission } from '@tauri-apps/plugin-notification'; @@ -289,7 +293,7 @@ export default { name: "HomePage", setup() { - return {stateToDisplay, invoke}; + return {stateToDisplay, invoke, getVersion}; }, data() { @@ -304,12 +308,16 @@ export default { outboundPayload: ref(), cleanupInterval: opt(), - unlisten: Array() + unlisten: Array(), + + version: opt() }; }, mounted: function () { nextTick(async () => { + this.version = await getVersion(); + // Check start at boot await enable(); console.log(`Is auto start: ${await isEnabled()}`);