aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/plugins/store.ts2
-rw-r--r--src-vue/src/views/PlayView.vue7
2 files changed, 6 insertions, 3 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index 14b96415..58756a92 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -13,7 +13,7 @@ export const store = createStore({
developer_mode: false,
game_path: "this/is/the/game/path",
- installed_northstar_version: "Unknown version",
+ installed_northstar_version: "",
northstar_is_running: false,
origin_is_running: false
diff --git a/src-vue/src/views/PlayView.vue b/src-vue/src/views/PlayView.vue
index af891b5c..02d59b15 100644
--- a/src-vue/src/views/PlayView.vue
+++ b/src-vue/src/views/PlayView.vue
@@ -11,6 +11,9 @@ export default {
computed: {
northstarIsRunning(): boolean {
return this.$store.state.northstar_is_running;
+ },
+ northstarVersion(): string {
+ return this.$store.state.installed_northstar_version;
}
},
methods: {
@@ -44,9 +47,9 @@ export default {
<div class="fc_title">Northstar</div>
<div class="fc_northstar__version__container">
<div class="fc_northstar__version" @click="activateDeveloperMode">
- v{{ $store.state.installed_northstar_version }}
+ {{ northstarVersion === '' ? 'Unknown version' : `v${northstarVersion}` }}
</div>
- <div class="fc_changelog__link" @click="showChangelogPage">
+ <div v-if="northstarVersion !== ''" class="fc_changelog__link" @click="showChangelogPage">
(see patch notes)
</div>
</div>