aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-09-26 23:25:23 +0200
committerAlystrasz <contact@remyraes.com>2022-09-26 23:26:01 +0200
commitb4531b34ca5232aadfa2cebaa1c26c66fbaea4cd (patch)
tree8e6f808041078e91d6e8344982827a6b6d839017 /src-vue/src/views
parentea94dd382d3ef759b83350ddf51eecf121eab18f (diff)
downloadFlightCore-b4531b34ca5232aadfa2cebaa1c26c66fbaea4cd.tar.gz
FlightCore-b4531b34ca5232aadfa2cebaa1c26c66fbaea4cd.zip
fix: do not display "see patch notes" link with unknown Northstar version
Diffstat (limited to 'src-vue/src/views')
-rw-r--r--src-vue/src/views/PlayView.vue7
1 files changed, 5 insertions, 2 deletions
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>