diff --git a/app/components/documents/DocumentView.vue b/app/components/documents/DocumentView.vue
index 72c202fd5..c067e7de6 100644
--- a/app/components/documents/DocumentView.vue
+++ b/app/components/documents/DocumentView.vue
@@ -403,21 +403,15 @@ defineShortcuts({
"
block
class="flex-1 flex-col"
- :color="!doc.deletedAt ? 'red' : undefined"
+ :color="!doc.deletedAt ? 'red' : 'green'"
:icon="!doc.deletedAt ? 'i-mdi-trash-can' : 'i-mdi-restore'"
+ :label="!doc.deletedAt ? $t('common.delete') : $t('common.restore')"
@click="
modal.open(ConfirmModal, {
confirm: async () => deleteDocument(documentId),
})
"
- >
-
- {{ $t('common.delete') }}
-
-
- {{ $t('common.restore') }}
-
-
+ />
diff --git a/app/components/jobs/timeclock/TimeclockList.vue b/app/components/jobs/timeclock/TimeclockList.vue
index 8810aaaf1..1454d77be 100644
--- a/app/components/jobs/timeclock/TimeclockList.vue
+++ b/app/components/jobs/timeclock/TimeclockList.vue
@@ -118,7 +118,6 @@ const {
async function listTimeclockEntries(): Promise {
try {
- console.log('TEST1');
if (!isBefore(query.date.start, query.date.end)) {
query.date.start = query.mode > TimeclockMode.DAILY ? subWeeks(query.date.end, 1) : query.date.start;
}
@@ -148,7 +147,6 @@ async function listTimeclockEntries(): Promise {
const call = getGRPCJobsTimeclockClient().listTimeclock(req);
const { response } = await call;
- console.log('TEST2', response);
return response;
} catch (e) {
diff --git a/app/components/mailer/MailerThread.vue b/app/components/mailer/MailerThread.vue
index ffc3ca2e0..ae8d964a5 100644
--- a/app/components/mailer/MailerThread.vue
+++ b/app/components/mailer/MailerThread.vue
@@ -232,10 +232,14 @@ const onSubmitThrottle = useThrottleFn(async (event: FormSubmitEvent) =>
-
+
at.name === props.defaultAccessType);
+ let idx = aTypes.value.findIndex((at) => at.type === props.defaultAccessType);
if (idx === -1) {
idx = aTypes.value.length - 1;
}
diff --git a/app/components/qualifications/QualificationView.vue b/app/components/qualifications/QualificationView.vue
index 007cd8f4e..d9cd4a882 100644
--- a/app/components/qualifications/QualificationView.vue
+++ b/app/components/qualifications/QualificationView.vue
@@ -236,16 +236,15 @@ const accordionItems = computed(() =>
deleteQualification(qualification!.id),
})
"
- >
- {{ $t('common.delete') }}
-
+ />
diff --git a/app/components/wiki/PageView.vue b/app/components/wiki/PageView.vue
index 43ee37649..cac11fa0b 100644
--- a/app/components/wiki/PageView.vue
+++ b/app/components/wiki/PageView.vue
@@ -167,11 +167,11 @@ const accordionItems = computed(() =>
can('WikiService.DeletePage').value &&
checkPageAccess(page.access, page.meta.creator, AccessLevel.OWNER)
"
- :text="$t('common.delete')"
+ :text="!page.meta.deletedAt ? $t('common.delete') : $t('common.restore')"
>
page && deletePage(page.id),
diff --git a/app/pages/mail/index.vue b/app/pages/mail/index.vue
index 65b557cab..57e82ebe2 100644
--- a/app/pages/mail/index.vue
+++ b/app/pages/mail/index.vue
@@ -443,10 +443,13 @@ onBeforeMount(async () => {
/>
-
+