Confirm dialog, fix language change bug, add bank accout information to users

This commit is contained in:
2024-09-22 20:57:28 +02:00
parent 98cc551f76
commit a55248ecef
16 changed files with 222 additions and 32 deletions

View File

@@ -2,7 +2,7 @@
import { useTheme } from 'vuetify/lib/framework.mjs';
import { useUserStore } from './data/stores/userStore';
import { i18n } from './plugins/i18n';
import { ref } from 'vue';
import { ref, watch } from 'vue';
import vuetify from './plugins/vuetify';
import navigationItems from './components/navigationItems.vue';
import { useProductStore } from './data/stores/productStore';
@@ -15,10 +15,14 @@ const theme = useTheme()
const navRail = ref(vuetify.display.mobile)
theme.global.name.value = userStore.theme
i18n.global.locale = userStore.language
productStore.fetchAllProducts()
categoryStore.fetchAllCategories()
// Global watcher
watch(() => userStore.language, () => {
i18n.global.locale = userStore.language
}, { immediate: true })
</script>
<template>