Allowed Filters to stay Persistent, Introduced Extra Column for ActivePhase

This commit is contained in:
2025-11-10 11:42:20 +01:00
parent 87aaa28d92
commit de32d72eda
4 changed files with 28 additions and 15 deletions

View File

@@ -35,9 +35,6 @@ export const useAuthStore = defineStore("auth", {
console.log("Auth initStore")
await this.fetchMe()
const tempStore = useTempStore()
if(this.profile.temp_config) tempStore.setStoredTempConfig(this.profile.temp_config)
if(this.activeTenant > 0) {
this.loading = false
if(useCapacitor().getIsNative()) {
@@ -99,6 +96,8 @@ export const useAuthStore = defineStore("auth", {
async fetchMe(jwt= null) {
console.log("Auth fetchMe")
const tempStore = useTempStore()
try {
const me = await useNuxtApp().$api("/api/me", {
headers: { Authorization: `Bearer ${jwt}`,
@@ -117,6 +116,8 @@ export const useAuthStore = defineStore("auth", {
this.profile = me.profile
if(this.profile.temp_config) tempStore.setStoredTempConfig(this.profile.temp_config)
if(me.activeTenant > 0) {
this.activeTenant = me.activeTenant
this.activeTenantData = me.tenants.find(i => i.id === me.activeTenant)