Commit 25f091b1 authored by Kevin Robert's avatar Kevin Robert
Browse files

UNOTOPLYS-177 : Suppression d'un item de bouton radio.

parent c4c08730
......@@ -41,4 +41,9 @@ export default class RadioEdit extends Vue {
public notifyChange() {
this.$emit('itemEdit');
}
public deleteItem(choice) {
this.configuration.choices = this.configuration.choices.filter((element) => element !== choice);
this.notifyChange();
}
}
......@@ -18,7 +18,7 @@
<td class="p-2 focus:ring" contenteditable="true" @blur="updateChoiceValue($event, choice)">{{choice.value}}</td>
<td class="p-2 font-mono text-center focus:ring" contenteditable="true" @blur="updateChoiceScore">{{choice.score}}</td>
<td class="align-middle text-center">
<button
<button @click="deleteItem(choice)"
class="flex items-center p-2 text-red-600 transition hover:bg-red-600 focus:ring hover:text-red-100">
<icon name="trash"></icon>
</button>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment