Added Styling to Balance in Account Table

This commit is contained in:
2024-07-04 19:04:34 +02:00
parent 669f50de6c
commit 101b8d3361
2 changed files with 32 additions and 25 deletions

View File

@@ -283,19 +283,16 @@ export const useDataStore = defineStore('data', () => {
])
async function initializeData (userId) {
console.log("init")
let profileconnections = (await supabase.from("profileconnections").select()).data
let profiles = (await supabase.from("profiles").select()).data
let activeProfileConnection = profileconnections.find(i => i.active)
if(activeProfileConnection) {
console.log("Active Profile Selected")
activeProfile.value = profiles.find(i => i.id === activeProfileConnection.profile_id)
currentTenant.value = activeProfile.value.tenant
await fetchData()
} else {
console.log("No Profile Active")
await fetchOwnProfiles()
await fetchTenants()
showProfileSelection.value = true
@@ -335,7 +332,6 @@ export const useDataStore = defineStore('data', () => {
}
async function fetchData () {
console.log("Fetch Start")
await fetchOwnProfiles()
await fetchProfiles()
@@ -383,7 +379,6 @@ export const useDataStore = defineStore('data', () => {
await fetchResources()
loaded.value = true
console.log("Data Fetched")
}