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() {