Loading src/components/MailAfficher.vue +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ <v-col> <v-card variant="elevated"> <v-card-title> <h3>{{ mail.sujet }}</h3> <h3 v-html="mail.sujet"></h3> </v-card-title> <v-card-text v-html="mail.corps"></v-card-text> </v-card> Loading src/components/TableMail.vue +4 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,10 @@ </v-chip> </template> <template v-slot:item.sujet="{ item }"> <p v-html="item.sujet"></p> </template> <template v-slot:item.motsClefs="{ item }"> <v-chip v-if="item.motsClefs" v-for="mot in item.motsClefs.split(useMailsStore().motsClefsSeparateur)" :key="mot"> {{ mot }} Loading src/stores/mails.ts +2 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ export const useMailsStore = defineStore('mails', { async reenvoiMail(id: number) { this.loading = true try { await axios.post('/mail-api/reenvoi', const response = await axios.post('/mail-api/reenvoi', { id: id }, { Loading @@ -82,6 +82,7 @@ export const useMailsStore = defineStore('mails', { 'Content-Type': 'multipart/form-data' } }) this.mails.unshift(response.data) this.message = `Mail ${id} réenvoyé` } catch (error: any) { this.error = error.message Loading Loading
src/components/MailAfficher.vue +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ <v-col> <v-card variant="elevated"> <v-card-title> <h3>{{ mail.sujet }}</h3> <h3 v-html="mail.sujet"></h3> </v-card-title> <v-card-text v-html="mail.corps"></v-card-text> </v-card> Loading
src/components/TableMail.vue +4 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,10 @@ </v-chip> </template> <template v-slot:item.sujet="{ item }"> <p v-html="item.sujet"></p> </template> <template v-slot:item.motsClefs="{ item }"> <v-chip v-if="item.motsClefs" v-for="mot in item.motsClefs.split(useMailsStore().motsClefsSeparateur)" :key="mot"> {{ mot }} Loading
src/stores/mails.ts +2 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ export const useMailsStore = defineStore('mails', { async reenvoiMail(id: number) { this.loading = true try { await axios.post('/mail-api/reenvoi', const response = await axios.post('/mail-api/reenvoi', { id: id }, { Loading @@ -82,6 +82,7 @@ export const useMailsStore = defineStore('mails', { 'Content-Type': 'multipart/form-data' } }) this.mails.unshift(response.data) this.message = `Mail ${id} réenvoyé` } catch (error: any) { this.error = error.message Loading