Some Corrections For Mobile

This commit is contained in:
2025-05-31 20:09:36 +02:00
parent cad2ed9dba
commit eb37257ae8
7 changed files with 51 additions and 14 deletions

View File

@@ -40,7 +40,10 @@ export const useProfileStore = defineStore('profile', () => {
let profiles = (await supabase.from("profiles").select("*, role(*)")).data
let activeProfileConnection = profileconnections.find(i => i.active)
if(activeProfileConnection) {
toast.add({title: 'Aktives Profil ausgewählt'})
if(!await useCapacitor().getIsPhone()) {
toast.add({title: 'Aktives Profil ausgewählt'})
}
console.log("Active Profile selected")
activeProfile.value = profiles.find(i => i.id === activeProfileConnection.profile_id)
currentTenant.value = activeProfile.value.tenant