only Enable Delete if there is one selection

This commit is contained in:
Samuel Lorch 2023-04-01 02:01:11 +02:00
parent 02016cbbf3
commit 29bfd7f708

View file

@ -71,6 +71,6 @@ onMounted(async() => {
<button @click="load">Refresh</button> <button @click="load">Refresh</button>
<button @click="load">Create</button> <button @click="load">Create</button>
<button @click="load" :disabled="selection.length != 1">Edit</button> <button @click="load" :disabled="selection.length != 1">Edit</button>
<button @click="deleteInterface" :disabled="selection.length == 0">Delete</button> <button @click="deleteInterface" :disabled="selection.length != 1">Delete</button>
</TableView> </TableView>
</template> </template>