From a4c1a6fc95318cdd6ef26bd7233e51dd80691067 Mon Sep 17 00:00:00 2001 From: jedi Date: Sun, 9 Jun 2024 18:34:46 +0200 Subject: [PATCH] stash --- web/src/store.js | 1 + web/src/views/admin/Settings.vue | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/store.js b/web/src/store.js index 06f114a..1e3ca17 100644 --- a/web/src/store.js +++ b/web/src/store.js @@ -446,6 +446,7 @@ const store = createStore({ }, async createMessageTemplate({commit, state}, template_name) { const {data, success} = await http.post('/2/message_templates/', {name: template_name}, state.user.token); + const {data: newTemplates, success: newSuccess} = await http.get('/2/message_templates/', state.user.token); if (data && success) { commit('setMessageTemplates', data); } diff --git a/web/src/views/admin/Settings.vue b/web/src/views/admin/Settings.vue index c8cb2d8..5823dfe 100644 --- a/web/src/views/admin/Settings.vue +++ b/web/src/views/admin/Settings.vue @@ -10,11 +10,9 @@
{{ template.name }}
+
- -
-