diff --git a/pages/documents.vue b/pages/documents.vue
index a91fd55..fbdf9fb 100644
--- a/pages/documents.vue
+++ b/pages/documents.vue
@@ -269,7 +269,6 @@ const downloadSelected = async () => {
-
{
emailAccounts.value = await useSupabaseSelect("emailAccounts")
- emailData.value.account = emailAccounts.value[0].id
- preloadedContent.value = `${dataStore.activeProfile.emailSignature}`
+ if(emailAccounts.value.length === 0) {
+ noAccountsPresent.value = true
+ } else {
+ emailData.value.account = emailAccounts.value[0].id
- //Check Query
- if(route.query.to) emailData.value.to = route.query.to
- if(route.query.cc) emailData.value.cc = route.query.cc
- if(route.query.bcc) emailData.value.bcc = route.query.bcc
- if(route.query.subject) emailData.value.to = route.query.subject
+ preloadedContent.value = `${dataStore.activeProfile.emailSignature}`
+
+ //Check Query
+ if(route.query.to) emailData.value.to = route.query.to
+ if(route.query.cc) emailData.value.cc = route.query.cc
+ if(route.query.bcc) emailData.value.bcc = route.query.bcc
+ if(route.query.subject) emailData.value.to = route.query.subject
- if(route.query.loadDocuments) {
- //console.log(JSON.parse(route.query.loadDocuments))
- const {data,error} = await supabase.from("documents").select('*, createdDocument(id,documentNumber,title,contact(email))').in('id',JSON.parse(route.query.loadDocuments))
+ if(route.query.loadDocuments) {
+ //console.log(JSON.parse(route.query.loadDocuments))
+ const {data,error} = await supabase.from("documents").select('*, createdDocument(id,documentNumber,title,contact(email))').in('id',JSON.parse(route.query.loadDocuments))
- if(error) console.log(error)
- if(data) loadedDocuments.value = data
+ if(error) console.log(error)
+ if(data) loadedDocuments.value = data
- //console.log(loadedDocuments.value)
+ //console.log(loadedDocuments.value)
- if(loadedDocuments.value.length > 0) {
- emailData.value.subject = loadedDocuments.value[0].createdDocument.title
- emailData.value.to = loadedDocuments.value[0].createdDocument.contact ? loadedDocuments.value[0].createdDocument.contact.email : ""
+ if(loadedDocuments.value.length > 0) {
+ emailData.value.subject = loadedDocuments.value[0].createdDocument.title
+ emailData.value.to = loadedDocuments.value[0].createdDocument.contact ? loadedDocuments.value[0].createdDocument.contact.email : ""
+
+ }
}
+ loaded.value = true
}
- loaded.value = true
+
+
}
@@ -142,98 +151,112 @@ const sendEmail = async () => {
-
-
-
+ Keine E-Mail Konten vorhanden
+
-
-
- Senden
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Anhänge
-
-
-
- - Datei - {{file.filename}}
- -
- Dokument - {{doc.createdDocument.documentNumber}}
-
-
-
-
-
-
-
+ + E-Mail Konto
+
+
+
+
+
+
+
+
+ Senden
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Anhänge
+
+
+
+ - Datei - {{file.filename}}
+ -
+ Dokument - {{doc.createdDocument.documentNumber}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/employees/timetracking.vue b/pages/employees/timetracking.vue
index 5f380c3..257356d 100644
--- a/pages/employees/timetracking.vue
+++ b/pages/employees/timetracking.vue
@@ -303,7 +303,6 @@ const setState = async (newState) => {
Zeiteintrag {{configTimeMode === 'create' ? "erstellen" : "bearbeiten"}}
- {{itemInfo}}
diff --git a/pages/events/index.vue b/pages/events/index.vue
index 310c377..28ddb68 100644
--- a/pages/events/index.vue
+++ b/pages/events/index.vue
@@ -53,6 +53,9 @@
{{row.project ? dataStore.getProjectById(row.project).name: ""}}
+
+ {{row.resources ? row.resources.map(i => i.title).join(", ") : ""}}
+
diff --git a/pages/index.vue b/pages/index.vue
index 4506cd4..70e22a2 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -57,15 +57,13 @@
>
-
-
-