diff --git a/frontend/components/mail/MailMessageViewer.vue b/frontend/components/mail/MailMessageViewer.vue index ab053ea..4f2c1cf 100644 --- a/frontend/components/mail/MailMessageViewer.vue +++ b/frontend/components/mail/MailMessageViewer.vue @@ -2,7 +2,6 @@ import type { MailMessageDetailDto, MailAddressDto } from '~/services/dto/mail' import { sanitizeMailHtml } from '~/utils/sanitizeMailHtml' import { useMailService } from '~/services/mail' -import { useMailStore } from '~/stores/mail' const props = defineProps<{ /** Détail complet du message. null = aucun message sélectionné. */ @@ -16,7 +15,6 @@ const emit = defineEmits<{ }>() const { t } = useI18n() -const store = useMailStore() const mailService = useMailService() const showImages = ref(false) @@ -33,20 +31,6 @@ watch( }, ) -async function handleMarkReadToggle(): Promise { - if (!props.detail) return - const id = props.detail.header.id - const currentlyRead = props.detail.header.isRead - await store.markRead(id, !currentlyRead) -} - -async function handleFlagToggle(): Promise { - if (!props.detail) return - const id = props.detail.header.id - const currentlyFlagged = props.detail.header.isFlagged - await store.markFlagged(id, !currentlyFlagged) -} - async function handleDownload(downloadId: string, filename: string): Promise { try { const { data } = await mailService.downloadAttachment(downloadId) @@ -126,7 +110,8 @@ function joinAddresses(addresses: MailAddressDto[]): string { variant="primary" icon-name="material-symbols:add-task-outline" icon-position="left" - :icon-size="14" + :icon-size="13" + button-class="text-xs px-2.5 py-1" @click="emit('createTask', detail.header.id)" /> - -