This commit is contained in:
Klemek
2022-02-17 14:15:34 +01:00
parent 5a2a2df3b1
commit 6704d772e2
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>