Changed Docker Loading
This commit is contained in:
@@ -292,6 +292,9 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
currentTenant.value = activeProfile.value.tenant
|
currentTenant.value = activeProfile.value.tenant
|
||||||
|
|
||||||
await fetchData()
|
await fetchData()
|
||||||
|
|
||||||
|
//loaded.value = true
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
await fetchOwnProfiles()
|
await fetchOwnProfiles()
|
||||||
await fetchTenants()
|
await fetchTenants()
|
||||||
@@ -339,44 +342,44 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
await fetchOwnTenant()
|
await fetchOwnTenant()
|
||||||
|
|
||||||
//loaded.value = true
|
//loaded.value = true
|
||||||
await fetchDocuments()
|
// await fetchDocuments()
|
||||||
await fetchEvents()
|
// await fetchEvents()
|
||||||
await fetchTasks()
|
// await fetchTasks()
|
||||||
await fetchProjects()
|
// await fetchProjects()
|
||||||
await fetchTimes()
|
// await fetchTimes()
|
||||||
await fetchCustomers()
|
// await fetchCustomers()
|
||||||
await fetchContracts()
|
// await fetchContracts()
|
||||||
await fetchContacts()
|
// await fetchContacts()
|
||||||
await fetchForms()
|
// await fetchForms()
|
||||||
await fetchFormSubmits()
|
// await fetchFormSubmits()
|
||||||
await fetchProducts()
|
// await fetchProducts()
|
||||||
await fetchUnits()
|
// await fetchUnits()
|
||||||
await fetchMovements()
|
// await fetchMovements()
|
||||||
await fetchSpaces()
|
// await fetchSpaces()
|
||||||
await fetchVehicles()
|
// await fetchVehicles()
|
||||||
await fetchVendors()
|
// await fetchVendors()
|
||||||
await fetchIncomingInvoices()
|
// await fetchIncomingInvoices()
|
||||||
await fetchBankAccounts()
|
// await fetchBankAccounts()
|
||||||
await fetchBankStatements()
|
// await fetchBankStatements()
|
||||||
await fetchBankRequisitions()
|
// await fetchBankRequisitions()
|
||||||
await fetchHistoryItems()
|
// await fetchHistoryItems()
|
||||||
await fetchNumberRanges()
|
// await fetchNumberRanges()
|
||||||
await fetchNotifications()
|
// await fetchNotifications()
|
||||||
await fetchAbsenceRequests()
|
// await fetchAbsenceRequests()
|
||||||
await fetchAccounts()
|
// await fetchAccounts()
|
||||||
await fetchTaxTypes()
|
// await fetchTaxTypes()
|
||||||
await fetchPlants()
|
// await fetchPlants()
|
||||||
await fetchInventoryItems()
|
// await fetchInventoryItems()
|
||||||
await fetchChats()
|
// await fetchChats()
|
||||||
await fetchMessages()
|
// await fetchMessages()
|
||||||
await fetchCreatedDocuments()
|
// await fetchCreatedDocuments()
|
||||||
await fetchWorkingTimes()
|
// await fetchWorkingTimes()
|
||||||
await fetchPhasesTemplates()
|
// await fetchPhasesTemplates()
|
||||||
await fetchEmailAccounts()
|
// await fetchEmailAccounts()
|
||||||
await fetchTextTemplates()
|
// await fetchTextTemplates()
|
||||||
await fetchServices()
|
// await fetchServices()
|
||||||
await fetchServiceCategories()
|
// await fetchServiceCategories()
|
||||||
await fetchResources()
|
// await fetchResources()
|
||||||
loaded.value = true
|
loaded.value = true
|
||||||
|
|
||||||
|
|
||||||
@@ -821,6 +824,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function updateItem (dataType, data, oldData = null) {
|
async function updateItem (dataType, data, oldData = null) {
|
||||||
|
console.log(dataType, data)
|
||||||
//Temporary Fix TODO: Remove and build Solution
|
//Temporary Fix TODO: Remove and build Solution
|
||||||
data = JSON.parse(JSON.stringify(data))
|
data = JSON.parse(JSON.stringify(data))
|
||||||
delete data.users
|
delete data.users
|
||||||
@@ -845,7 +849,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
console.log(supabaseError)
|
console.log(supabaseError)
|
||||||
toast.add({title: `Fehler beim Speichern`, color: 'rose'})
|
toast.add({title: `Fehler beim Speichern`, color: 'rose'})
|
||||||
} else if(supabaseData) {
|
} else if(supabaseData) {
|
||||||
await eval(dataType + '.value[' + dataType + '.value.findIndex(i => i.id === ' + JSON.stringify(data.id) + ')] = ' + JSON.stringify(supabaseData[0]))
|
//await eval(dataType + '.value[' + dataType + '.value.findIndex(i => i.id === ' + JSON.stringify(data.id) + ')] = ' + JSON.stringify(supabaseData[0]))
|
||||||
if(dataType === 'profiles') await fetchProfiles()
|
if(dataType === 'profiles') await fetchProfiles()
|
||||||
toast.add({title: `${dataTypes[dataType].labelSingle} gespeichert`})
|
toast.add({title: `${dataTypes[dataType].labelSingle} gespeichert`})
|
||||||
if(dataTypes[dataType].redirect) await router.push(`/${dataType}/show/${data.id}`)
|
if(dataTypes[dataType].redirect) await router.push(`/${dataType}/show/${data.id}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user