Go to next week on weekends

这个提交包含在:
Arnaud Vergnet 2020-04-16 10:18:38 +02:00
父节点 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;