stash
This commit is contained in:
parent
a93781233d
commit
68e146ffd4
2 changed files with 5 additions and 4 deletions
|
@ -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: {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue