fix: count salad slot on warning

This commit is contained in:
2025-11-04 23:51:28 +01:00
parent a1cb638e4b
commit ea54573cac
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -262,6 +262,15 @@ const app = createApp({
value.length && array.indexOf(value) === index
);
},
slotTooBig() {
const slotCount = this.totalDuration / this.config.duration;
if (this.config.endWithAll) {
return slotCount - 1 < this.candidates.length;
}
return slotCount < this.candidates.length;
},
},
watch: {
vegetable() {