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; state.messageTemplates = templates;
}, },
setMessageTemplateVariables(state, variables) { setMessageTemplateVariables(state, variables) {
state.messageTemplatesVariables = variables; state.messageTemplateVariables = variables;
}, },
}, },
actions: { actions: {

View file

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