stash
This commit is contained in:
parent
2a0fd8649d
commit
602205e096
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue