+
+ {{ seat }}
+
+
{{ seat }}
@@ -114,12 +117,11 @@ export default {
},
personCountChange: function() {
let diff = this.personCount - this.chosenSeats.length;
- if (diff < 0) {
// diff je záporné číslo
for (let i = diff; i < 0; i++) {
this.chosenSeats.pop();
}
- }
+
}
}
}
@@ -144,6 +146,15 @@ export default {
background-color: lightgray;
}
+ .seat .disabled {
+ color: brown;
+ }
+
+ .seat .disabled:hover {
+ cursor: default;
+ background-color: transparent;
+ }
+
.seat .chosen {
background-color: lightgreen;
}