mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 22:56:24 +00:00
Set the events/tasks list collapsable
This commit is contained in:
@@ -214,8 +214,6 @@
|
||||
|
||||
- (BOOL) showCompletedTasks
|
||||
{
|
||||
BOOL show;
|
||||
|
||||
[self _setupContext];
|
||||
|
||||
return [[us objectForKey: @"ShowCompletedTasks"] boolValue];
|
||||
@@ -237,6 +235,32 @@
|
||||
return [self responseWithStatus: 204];
|
||||
}
|
||||
|
||||
- (WOResponse *) saveListStateAction
|
||||
{
|
||||
WORequest *request;
|
||||
NSString *state;
|
||||
|
||||
[self _setupContext];
|
||||
request = [context request];
|
||||
|
||||
state = [request formValueForKey: @"state"];
|
||||
[moduleSettings setObject: state
|
||||
forKey: @"ListState"];
|
||||
[us synchronize];
|
||||
|
||||
return [self responseWithStatus: 204];
|
||||
}
|
||||
|
||||
- (NSString *) listStateStyle
|
||||
{
|
||||
NSString *state;
|
||||
|
||||
[self _setupContext];
|
||||
state = [moduleSettings objectForKey: @"ListState"];
|
||||
|
||||
return (state && [state compare: @"collapse"] == NSOrderedSame)? @"display: none;" : @"";
|
||||
}
|
||||
|
||||
- (unsigned int) firstDayOfWeek
|
||||
{
|
||||
SOGoUserDefaults *ud;
|
||||
|
||||
Reference in New Issue
Block a user