mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: hide "Next Week" in future-date-input on Sundays (#12918)
This commit is contained in:
committed by
GitHub
parent
d16a39dc53
commit
e7de943b5d
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user