From 0df129d7a052a0ca267e29904479c01e4eaef14a Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 7 Jun 2024 23:08:24 +0200 Subject: [PATCH] stash --- web/src/views/admin/Settings.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web/src/views/admin/Settings.vue b/web/src/views/admin/Settings.vue index 1ef23b5..88fccf1 100644 --- a/web/src/views/admin/Settings.vue +++ b/web/src/views/admin/Settings.vue @@ -30,11 +30,6 @@ import FormatedText from "@/components/inputs/FormatedText.vue"; export default { name: 'Settings', components: {FormatedText, Table}, - data() { - return { - localChanges: [] - }; - }, computed: mapState(['messageTemplates', 'messageTemplateVariables']), methods: { ...mapActions(['fetchMessageTemplates', 'fetchMessageTemplateVariables']), @@ -45,7 +40,7 @@ export default { }, changeMessageTemplate(id, message) { console.log(id, message); - this.localChanges.forEach(template => { + this.messageTemplates.forEach(template => { if (template.id === id) { template.message = message; }