From f60bbba7fb951de90b91f5f2d805aa36762e0239 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 7 Jun 2024 22:54:56 +0200 Subject: [PATCH] stash --- web/src/views/admin/Settings.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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(); }, };