Changes
This commit is contained in:
@@ -26,7 +26,9 @@ const items = ref([])
|
|||||||
|
|
||||||
const setup = async () => {
|
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 || []
|
items.value = (await supabase.from("historyitems").select().eq("customer",elementId)).data || []
|
||||||
} else if(type === "vendor") {
|
} else if(type === "vendor") {
|
||||||
items.value = (await supabase.from("historyitems").select().eq("vendor",elementId)).data || []
|
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 || []
|
items.value = (await supabase.from("historyitems").select().eq("space",elementId)).data || []
|
||||||
} else if(type === "trackingtrip") {
|
} else if(type === "trackingtrip") {
|
||||||
items.value = (await supabase.from("historyitems").select().eq("trackingtrip",elementId)).data || []
|
items.value = (await supabase.from("historyitems").select().eq("trackingtrip",elementId)).data || []
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
setup()
|
setup()
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const sendMessage = async () => {
|
|||||||
tenant: dataStore.currentTenant,
|
tenant: dataStore.currentTenant,
|
||||||
profile: i.id,
|
profile: i.id,
|
||||||
initiatingProfile: dataStore.activeProfile.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}`,
|
link: `/chats/show/${itemInfo.value.id}`,
|
||||||
message: message.text
|
message: message.text
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -940,7 +940,9 @@ setupPage()
|
|||||||
<UFormGroup
|
<UFormGroup
|
||||||
label="Kunde:"
|
label="Kunde:"
|
||||||
>
|
>
|
||||||
<InputGroup>
|
<InputGroup
|
||||||
|
class="w-full"
|
||||||
|
>
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
:options="dataStore.customers"
|
:options="dataStore.customers"
|
||||||
option-attribute="name"
|
option-attribute="name"
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ const setKeys = () => {
|
|||||||
quickactions: i.quickactions || []
|
quickactions: i.quickactions || []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
itemInfo.value.initialPhases[0].active = true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const setupPage = async() => {
|
const setupPage = async() => {
|
||||||
|
|||||||
@@ -703,6 +703,12 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
name = "Fahrer"
|
name = "Fahrer"
|
||||||
if(prop.data.o) oldVal = profiles.value.find(i => i.id === prop.data.o).fullName
|
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
|
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") {
|
} else if(key === "fixed") {
|
||||||
name = "Festgeschrieben"
|
name = "Festgeschrieben"
|
||||||
if(newVal === true){
|
if(newVal === true){
|
||||||
|
|||||||
Reference in New Issue
Block a user