make the boxes toggleable

This commit is contained in:
Andreas Zweili 2021-01-18 22:45:24 +01:00
parent f9203c83d3
commit 043e32cb67
1 changed files with 3 additions and 3 deletions

View File

@ -11,11 +11,11 @@ const app = Vue.createApp({
methods: { methods: {
boxSelected(box) { boxSelected(box) {
if (box === "A") { if (box === "A") {
this.boxASelected = true; this.boxASelected = !this.boxASelected;
} else if (box === "B") { } else if (box === "B") {
this.boxBSelected = true; this.boxBSelected = !this.boxBSelected;
} else if (box === "C") { } else if (box === "C") {
this.boxCSelected = true; this.boxCSelected = !this.boxCSelected;
} }
}, },
}, },