From 20ab9860f15cbb63b39175e6ea240c1b9bc87fe3 Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 6 Jun 2024 23:05:21 +0200 Subject: [PATCH] stash --- web/src/components/inputs/FormatedText.vue | 2 +- web/src/views/admin/Settings.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/inputs/FormatedText.vue b/web/src/components/inputs/FormatedText.vue index 68eac41..89dee51 100644 --- a/web/src/components/inputs/FormatedText.vue +++ b/web/src/components/inputs/FormatedText.vue @@ -25,7 +25,7 @@ export default { methods: { rawhtml(value) { if (typeof this.format === 'function') { - return this.format(value).replace(/ /g, ' '); + return this.format(value.replace(/ /g, ' ')); } else { return value; } diff --git a/web/src/views/admin/Settings.vue b/web/src/views/admin/Settings.vue index 76c7a2e..0282001 100644 --- a/web/src/views/admin/Settings.vue +++ b/web/src/views/admin/Settings.vue @@ -28,7 +28,7 @@ export default { ...mapActions(['fetchMessageTemplates', 'fetchMessageTemplateVariables']), formatText(value) { return value.replace(/{{(.+?)}}/g, (match, key) => { - return `{{ ${key} }}`; + return `{{${key}}}`; }).replace(/\n/g, '
').replace(/\t/g, '    '); }, changeMessageTemplate(id, message) {