mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-04 08:19:21 +00:00
feat(calendar): Add week number on month view. Fixes #4457.
This commit is contained in:
1 parent
861dea8efa
commit
96639b70a0
5 files changed
+44
No files matched your search
@@ -234,6 +234,19 @@
|
||||
return daysNumbersToDisplay[i];
|
||||
}
|
||||
|
||||
- (BOOL) isFirstDayOfWeek {
|
||||
return 0 == [currentWeek indexOfObject: currentTableDay];
|
||||
}
|
||||
|
||||
- (int) currentWeekNumber
|
||||
{
|
||||
SOGoUser *user;
|
||||
|
||||
user = [context activeUser];
|
||||
|
||||
return [user weekNumberForDate: currentTableDay];
|
||||
}
|
||||
|
||||
- (void) setCurrentWeek: (NSArray *) newCurrentWeek
|
||||
{
|
||||
ASSIGN (currentWeek, newCurrentWeek);
|
||||
|
||||
Reference in new issue
Block a user