Skip to content

Commit 12d5d3a

Browse files
committed
refactor(ui): Simplify show version condition
1 parent 3776343 commit 12d5d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/app/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<div class="container mx-auto px-4 py-6 max-w-7xl">
101101
<div class="flex flex-col items-center gap-4">
102102
<div class="text-sm text-muted-foreground text-center">
103-
Powered by <a href="https://gatus.io" target="_blank" class="font-medium text-emerald-800 hover:text-emerald-600">Gatus </a> {{ buildVersion ? ` ${buildVersion} ` : '' }}
103+
Powered by <a href="https://gatus.io" target="_blank" class="font-medium text-emerald-800 hover:text-emerald-600">Gatus </a> {{ buildVersion && ` ${buildVersion}` }}
104104
</div>
105105
<Social />
106106
</div>
@@ -165,7 +165,7 @@ import Loading from './components/Loading.vue'
165165
const route = useRoute()
166166
167167
// Build info
168-
const buildVersion = ref(window.config && window.config.buildVersion != '{{ .UI.BuildVersion }}' ? window.config.buildVersion : "")
168+
const buildVersion = ref(window.config && window.config.buildVersion != '{{ .UI.BuildVersion }}' ? window.config.buildVersion : null)
169169
170170
// State
171171
const retrievedConfig = ref(false)

0 commit comments

Comments
 (0)