Go to next week on weekends
这个提交包含在:
父节点
912a30edc6
当前提交
28168aacf8
共有 2 个文件被更改,包括 5 次插入 和 0 次删除
|
@ -58,4 +58,8 @@ export default class DateManager {
|
|||
return this.daysOfWeek[date.getDay()] + " " + date.getDate() + " " + this.monthsOfYear[date.getMonth()] + " " + date.getFullYear();
|
||||
}
|
||||
|
||||
static isWeekend(date: Date) {
|
||||
return date.getDay() === 6 || date.getDay() === 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -191,6 +191,7 @@ class PlanexScreen extends React.Component<Props, State> {
|
|||
+ OBSERVE_MUTATIONS_INJECTED
|
||||
+ FULL_CALENDAR_SETTINGS
|
||||
+ "displayAde(" + groupID + ");" // Reset Ade
|
||||
+ (DateManager.isWeekend(new Date()) ? "calendar.next()" : "")
|
||||
+ LISTEN_TO_MESSAGES
|
||||
+ INJECT_STYLE;
|
||||
|
||||
|
|
正在加载…
在新工单中引用