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), }) " - > - - - + /> 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) => - + - {{ $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')" > +