mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03:51 +00:00
Fix disappearing theme select button
This commit is contained in:
parent
654d68a240
commit
32214a5ab4
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user