diff --git a/src/client/theme-default/components/VPSwitchAppearance.vue b/src/client/theme-default/components/VPSwitchAppearance.vue index d7a70ddb..f63d1ce4 100644 --- a/src/client/theme-default/components/VPSwitchAppearance.vue +++ b/src/client/theme-default/components/VPSwitchAppearance.vue @@ -11,12 +11,10 @@ const toggleAppearance = inject('toggle-appearance', () => { isDark.value = !isDark.value }) -const lightModeSwitchTitle = computed(() => theme.value.lightModeSwitchTitle || 'Switch to light theme') - -const darkModeSwitchLabel = computed(() => theme.value.darkModeSwitchTitle || 'Switch to dark theme') - const switchTitle = computed(() => { - return isDark.value ? lightModeSwitchTitle.value : darkModeSwitchLabel.value + return isDark.value + ? theme.value.lightModeSwitchTitle || 'Switch to light theme' + : theme.value.darkModeSwitchTitle || 'Switch to dark theme' })