This commit is contained in:
2024-12-01 13:44:38 +01:00
parent 9993217ed1
commit a6712f7c98
5 changed files with 17 additions and 4 deletions

View File

@@ -26,7 +26,9 @@ const items = ref([])
const setup = async () => {
if(type === "customer") {
items.value = (await supabase.from("historyitems").select().eq(type,elementId).order("created_at",{ascending: true})).data || []
/*if(type === "customer") {
items.value = (await supabase.from("historyitems").select().eq("customer",elementId)).data || []
} else if(type === "vendor") {
items.value = (await supabase.from("historyitems").select().eq("vendor",elementId)).data || []
@@ -60,7 +62,7 @@ const setup = async () => {
items.value = (await supabase.from("historyitems").select().eq("space",elementId)).data || []
} else if(type === "trackingtrip") {
items.value = (await supabase.from("historyitems").select().eq("trackingtrip",elementId)).data || []
}
}*/
}
setup()

View File

@@ -54,7 +54,7 @@ const sendMessage = async () => {
tenant: dataStore.currentTenant,
profile: i.id,
initiatingProfile: dataStore.activeProfile.id,
title: `Sie wurden im Chat ${itemInfo.value.name} erwähnt`,
title: `Sie haben eine neue Nachricht im Chat ${itemInfo.value.name}`,
link: `/chats/show/${itemInfo.value.id}`,
message: message.text
}

View File

@@ -940,7 +940,9 @@ setupPage()
<UFormGroup
label="Kunde:"
>
<InputGroup>
<InputGroup
class="w-full"
>
<USelectMenu
:options="dataStore.customers"
option-attribute="name"

View File

@@ -47,6 +47,9 @@ const setKeys = () => {
quickactions: i.quickactions || []
}
})
itemInfo.value.initialPhases[0].active = true
}
const setupPage = async() => {

View File

@@ -703,6 +703,12 @@ export const useDataStore = defineStore('data', () => {
name = "Fahrer"
if(prop.data.o) oldVal = profiles.value.find(i => i.id === prop.data.o).fullName
if(prop.data.n) newVal = profiles.value.find(i => i.id === prop.data.n).fullName
} else if(key === "projecttype") {
name = "Projekttyp"
//TODO: Resolving for Projecttypes
//if(prop.data.o) oldVal = profiles.value.find(i => i.id === prop.data.o).fullName
//if(prop.data.n) newVal = profiles.value.find(i => i.id === prop.data.n).fullName
} else if(key === "fixed") {
name = "Festgeschrieben"
if(newVal === true){