This commit is contained in:
j3d1 2024-05-09 23:56:59 +02:00
parent a93781233d
commit 68e146ffd4
2 changed files with 5 additions and 4 deletions

View file

@ -207,7 +207,7 @@ const store = createStore({
state.messageTemplates = templates;
},
setMessageTemplateVariables(state, variables) {
state.messageTemplatesVariables = variables;
state.messageTemplateVariables = variables;
},
},
actions: {

View file

@ -2,13 +2,14 @@
<h3 class="text-center">Message Templates</h3>
<ul>
<li v-for="template in messageTemplates" :key="template.id">
{{ template.name }}
{{ template.name }}<br>
<p>{{ template.message }}</p>
</li>
</ul>
<h3 class="text-center">Message Template Variables</h3>
<ul>
<li v-for="variable in messageTemplateVariables" :key="variable.id">
{{ variable.name }}
<li v-for="(variable, key) in messageTemplateVariables" :key="key">
{{ variable }}
</li>
</ul>
</template>