diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue index 5f093065..a0e756f2 100644 --- a/frontend/src/views/Settings.vue +++ b/frontend/src/views/Settings.vue @@ -10,17 +10,17 @@ {{ $t("settings.profileSettings") }} -
  • {{ $t("settings.shareManagement") }}
  • -
  • {{ $t("settings.globalSettings") }}
  • -
  • import { useAuthStore } from "@/stores/auth"; import { useLayoutStore } from "@/stores/layout"; import HeaderBar from "@/components/header/HeaderBar.vue"; +import { computed } from "vue"; + +const authStore = useAuthStore(); +const layoutStore = useLayoutStore(); + +const user = computed(() => authStore.user) +const loading = computed(() => layoutStore.loading) + -export default { - name: "settings", - components: { - HeaderBar, - }, - computed: { - ...mapState(useAuthStore, ["user"]), - ...mapState(useLayoutStore, ["loading"]), - }, -};