Fix disappearing theme select button

This commit is contained in:
Matthias 2023-06-01 06:23:28 +02:00
parent a2bacd5243
commit c19c1695dc

View File

@ -1,5 +1,5 @@
<template> <template>
<b-link variant="primary" class="nav-link" @click="toggleNight"> <b-link class="nav-link" @click="toggleNight">
<i-mdi-brightness-6 /> <i-mdi-brightness-6 />
</b-link> </b-link>
</template> </template>
@ -11,7 +11,7 @@ import { onMounted, ref } from 'vue';
const activeTheme = ref(''); const activeTheme = ref('');
const settingsStore = useSettingsStore(); const settingsStore = useSettingsStore();
const setTheme = (themeName) => { const setTheme = (themeName: string) => {
// If theme is already active, do nothing. // If theme is already active, do nothing.
if (activeTheme.value === themeName) { if (activeTheme.value === themeName) {
return; return;