From ef95fbebe0e96b094ca57c9295a1ed5e48644b4f Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sat, 8 Oct 2022 00:23:05 +0200 Subject: feat: Show own version number in settings view (#11) * feat: Show own version number in settings view Adds a new field to state that stores FlightCore version number. Version number is pulled from backend on application launch. * style: Reorder so that FC version is shown first * chore: Remove leftover TODO comment --- src-vue/src/views/SettingsView.vue | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src-vue/src/views') diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue index 0e5498e9..5dd4e2b9 100644 --- a/src-vue/src/views/SettingsView.vue +++ b/src-vue/src/views/SettingsView.vue @@ -13,6 +13,9 @@

About:

+ FlightCore Version: {{ flightcoreVersion === '' ? 'Unknown version' : `${flightcoreVersion}` }} +
+
UI design inspired by TFORevive Launcher (not yet public) @@ -26,6 +29,11 @@ import { ElNotification } from 'element-plus'; export default defineComponent({ name: "SettingsView", + computed: { + flightcoreVersion(): string { + return this.$store.state.flightcore_version; + }, + }, methods: { async updateGamePath() { // Open a selection dialog for directories -- cgit v1.2.3