FIX: hide "Next Week" in future-date-input on Sundays (#12918)

This commit is contained in:
Andrei Prigorshnev
2021-05-03 11:22:05 +04:00
committed by GitHub
parent d16a39dc53
commit e7de943b5d
2 changed files with 74 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ export const TIMEFRAMES = [
buildTimeframe({
id: "next_week",
format: "ddd, h a",
enabled: (opts) => opts.day !== 7,
enabled: (opts) => opts.day !== 0,
when: (time, timeOfDay) =>
time.add(1, "week").day(1).hour(timeOfDay).minute(0),
icon: "briefcase",