aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/SettingsView.vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-10-08 00:23:05 +0200
committerGitHub <noreply@github.com>2022-10-08 00:23:05 +0200
commitef95fbebe0e96b094ca57c9295a1ed5e48644b4f (patch)
treedbd7e67e0106c1f91580f944f160f540a5839e90 /src-vue/src/views/SettingsView.vue
parent4e6c3fc46b46b6509b97a5aeeaef8f5ab9396093 (diff)
downloadFlightCore-ef95fbebe0e96b094ca57c9295a1ed5e48644b4f.tar.gz
FlightCore-ef95fbebe0e96b094ca57c9295a1ed5e48644b4f.zip
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
Diffstat (limited to 'src-vue/src/views/SettingsView.vue')
-rw-r--r--src-vue/src/views/SettingsView.vue8
1 files changed, 8 insertions, 0 deletions
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 @@
</template>
</el-input>
<h3>About:</h3>
+ FlightCore Version: {{ flightcoreVersion === '' ? 'Unknown version' : `${flightcoreVersion}` }}
+ <br />
+ <br />
UI design inspired by <el-link :underline="false" target="_blank" href="https://github.com/TFORevive/tforevive_launcher/" type="primary">TFORevive Launcher</el-link> (not yet public)
</div>
</template>
@@ -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