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();
|
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
|
+ OBSERVE_MUTATIONS_INJECTED
|
||||||
+ FULL_CALENDAR_SETTINGS
|
+ FULL_CALENDAR_SETTINGS
|
||||||
+ "displayAde(" + groupID + ");" // Reset Ade
|
+ "displayAde(" + groupID + ");" // Reset Ade
|
||||||
|
+ (DateManager.isWeekend(new Date()) ? "calendar.next()" : "")
|
||||||
+ LISTEN_TO_MESSAGES
|
+ LISTEN_TO_MESSAGES
|
||||||
+ INJECT_STYLE;
|
+ INJECT_STYLE;
|
||||||
|
|
||||||
|
|
|
||||||
Загрузка…
Сослаться в новой задаче