diff --git a/web/src/views/admin/Settings.vue b/web/src/views/admin/Settings.vue
index e4a0c7d..96bbe04 100644
--- a/web/src/views/admin/Settings.vue
+++ b/web/src/views/admin/Settings.vue
@@ -4,7 +4,8 @@
{{ template.name }}
+ @input="changeMessageTemplate(template.id, $event)"/>
+
@@ -52,11 +53,12 @@ export default {
}
},
mounted() {
- this.fetchMessageTemplates();
- this.fetchMessageTemplateVariables();
- this.localChanges = this.messageTemplates.map(template => {
- return {id: template.id, message: template.message, name: template.name};
+ this.fetchMessageTemplates().then(() => {
+ this.localChanges = this.messageTemplates.map(template => {
+ return {id: template.id, message: template.message, name: template.name};
+ });
});
+ this.fetchMessageTemplateVariables();
},
};