From ea54573cacf3e22b1334f881b5aafd3b4044a3a9 Mon Sep 17 00:00:00 2001 From: klemek Date: Tue, 4 Nov 2025 23:51:28 +0100 Subject: [PATCH] fix: count salad slot on warning --- index.html | 2 +- main.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b55d506..23f1d63 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ - + {{config.duration}} minutes diff --git a/main.js b/main.js index 1c89663..d31c55d 100644 --- a/main.js +++ b/main.js @@ -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() {