Added Styling to Balance in Account Table
This commit is contained in:
@@ -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")
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user