This commit is contained in:
j3d1 2024-06-07 23:08:24 +02:00
parent 602205e096
commit 0df129d7a0

View file

@ -30,11 +30,6 @@ import FormatedText from "@/components/inputs/FormatedText.vue";
export default { export default {
name: 'Settings', name: 'Settings',
components: {FormatedText, Table}, components: {FormatedText, Table},
data() {
return {
localChanges: []
};
},
computed: mapState(['messageTemplates', 'messageTemplateVariables']), computed: mapState(['messageTemplates', 'messageTemplateVariables']),
methods: { methods: {
...mapActions(['fetchMessageTemplates', 'fetchMessageTemplateVariables']), ...mapActions(['fetchMessageTemplates', 'fetchMessageTemplateVariables']),
@ -45,7 +40,7 @@ export default {
}, },
changeMessageTemplate(id, message) { changeMessageTemplate(id, message) {
console.log(id, message); console.log(id, message);
this.localChanges.forEach(template => { this.messageTemplates.forEach(template => {
if (template.id === id) { if (template.id === id) {
template.message = message; template.message = message;
} }