This commit is contained in:
Klemek
2023-08-29 16:44:24 +02:00
parent 5e81b9520e
commit 4bbf752bfc
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -34,14 +34,14 @@
<hr>
</div>
<div>
<h2 v-on:click="showConfig = !showConfig" class="expand">List <small>{{showConfig ? '' : ''}}</small></h2>
<h2 v-on:click="showConfig = !showConfig" class="expand">{{showConfig ? '' : ''}} List ({{ available.length }})</h2>
<table class="config" v-if="showConfig">
<tr v-for="(row, i) in available">
<td><input placeholder="question" v-bind:value="row[0]" v-on:change="row[0] = $event.target.value"></td>
<td><input placeholder="answer" v-bind:value="row[1]" v-on:change="row[1] = $event.target.value"></td>
<td><button v-on:click="deleteRow(i)">Delete</button></td>
</tr>
<tr>
<tr v-if="urlLength < 2048">
<td><input placeholder="question" v-bind:value="newRow[0]" v-on:change="newRow[0] = $event.target.value"></td>
<td><input placeholder="answer" v-bind:value="newRow[1]" v-on:change="newRow[1] = $event.target.value"></td>
<td><button v-on:click="addRow">Add</button></td>