Add theme toggle button to navigation bar

This commit is contained in:
2025-08-14 15:27:10 +02:00
parent af91640c2b
commit f7715bb494

View File

@@ -19,6 +19,11 @@
<!-- Menu icons on the right side of the toolbar -->
<template v-slot:append>
<v-btn
class="text-orange"
@click="theme.toggle()"
text="Light / Dark"
></v-btn>
<small class="text-white"> Logout </small>
<v-btn icon="mdi-account" class="text-white" @click="logout">
</v-btn>
@@ -55,7 +60,9 @@
<script setup>
import { ref, capitalize } from "vue";
import { useSystemStore } from "~/stores/system";
import { useTheme } from "vuetify";
const theme = useTheme();
const drawer = ref(false);
const { data, status, signOut } = useAuth();
const systemStore = useSystemStore();