From a6712f7c989580b566cc85644a1436d02e2d43cd Mon Sep 17 00:00:00 2001 From: flfeders Date: Sun, 1 Dec 2024 13:44:38 +0100 Subject: [PATCH] Changes --- components/HistoryDisplay.vue | 6 ++++-- pages/chats/show/[id].vue | 2 +- pages/createDocument/edit/[[id]].vue | 4 +++- pages/projecttypes/[mode]/[[id]].vue | 3 +++ stores/data.js | 6 ++++++ 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/components/HistoryDisplay.vue b/components/HistoryDisplay.vue index ef15025..bb28564 100644 --- a/components/HistoryDisplay.vue +++ b/components/HistoryDisplay.vue @@ -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() diff --git a/pages/chats/show/[id].vue b/pages/chats/show/[id].vue index 7f45bc3..ee17f99 100644 --- a/pages/chats/show/[id].vue +++ b/pages/chats/show/[id].vue @@ -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 } diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index 153ae2c..01c74f8 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -940,7 +940,9 @@ setupPage() - + { quickactions: i.quickactions || [] } }) + + itemInfo.value.initialPhases[0].active = true + } const setupPage = async() => { diff --git a/stores/data.js b/stores/data.js index 5bfea8a..a1f6966 100644 --- a/stores/data.js +++ b/stores/data.js @@ -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){