This commit is contained in:
j3d1 2024-06-07 23:05:22 +02:00
parent f60bbba7fb
commit b91a1ed371

View file

@ -1,7 +1,7 @@
<template>
<h3 class="text-center">Message Templates</h3>
<ul>
<li v-for="[template, index] in localChanges" :key="template.id">
<li v-for="[template, index] in messageTemplates" :key="template.id">
<b>{{ template.name }}</b><br>
<FormatedText :value="template.message" :format="formatText" class="template-message"
@input="changeMessageTemplate(template.id, $event)"/>
@ -53,11 +53,7 @@ export default {
}
},
mounted() {
this.fetchMessageTemplates().then(() => {
this.localChanges = this.messageTemplates.map(template => {
return {id: template.id, message: template.message, name: template.name};
});
});
this.fetchMessageTemplates();
this.fetchMessageTemplateVariables();
},
};