Changes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -940,7 +940,9 @@ setupPage()
|
||||
<UFormGroup
|
||||
label="Kunde:"
|
||||
>
|
||||
<InputGroup>
|
||||
<InputGroup
|
||||
class="w-full"
|
||||
>
|
||||
<USelectMenu
|
||||
:options="dataStore.customers"
|
||||
option-attribute="name"
|
||||
|
||||
@@ -47,6 +47,9 @@ const setKeys = () => {
|
||||
quickactions: i.quickactions || []
|
||||
}
|
||||
})
|
||||
|
||||
itemInfo.value.initialPhases[0].active = true
|
||||
|
||||
}
|
||||
|
||||
const setupPage = async() => {
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user