Commit 649baee4 authored by Anthony Gautreau's avatar Anthony Gautreau
Browse files

interpretation du html du sujet

parent 8723023a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>
+4 −0
Original line number Diff line number Diff line
@@ -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 }}
+2 −1
Original line number Diff line number Diff line
@@ -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
                }, {
@@ -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