This commit is contained in:
j3d1 2024-06-07 23:12:15 +02:00
parent 6f2196f78b
commit 1c090458de

View file

@ -1,16 +1,16 @@
<template>
<h3 class="text-center">Message Templates</h3>
<ul>
<li v-for="[template, index] in messageTemplates" :key="template.id">
<li v-for="template in messageTemplates" :key="template.id">
<b>{{ template.name }}</b><br>
<FormatedText :value="template.message" :format="formatText" class="template-message"
@input="changeMessageTemplate(template.id, $event)"/>
<br>
<button class="btn btn-primary"
:disabled="template.message !== messageTemplates[index].message">Reset
:disabled="true">Reset
</button>
<button class="btn btn-success"
:disabled="template.message !== messageTemplates[index].message">Save
:disabled="true">Save
</button>
</li>
</ul>