mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't show the Tis Weekend option in date pickers on Sundays
This commit is contained in:
committed by
Alan Guo Xiang Tan
parent
814781780d
commit
f79eb207a6
@@ -46,7 +46,7 @@ export const TIMEFRAMES = [
|
||||
buildTimeframe({
|
||||
id: "this_weekend",
|
||||
format: "ddd, h a",
|
||||
enabled: (opts) => opts.day < 5 && opts.includeWeekend,
|
||||
enabled: (opts) => opts.day > 0 && opts.day < 5 && opts.includeWeekend,
|
||||
when: (time, timeOfDay) => time.day(6).hour(timeOfDay).minute(0),
|
||||
icon: "bed",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user