fix(calendar): restore UIxOccurenceDialog
Renamed as action class UIxOccurenceEditor. Fixes #5141pull/284/head^2
parent
ac8a7ecc6e
commit
9af697ae83
|
@ -37,8 +37,8 @@ SchedulerUI_OBJC_FILES = \
|
||||||
UIxAppointmentEditor.m \
|
UIxAppointmentEditor.m \
|
||||||
UIxTaskEditor.m \
|
UIxTaskEditor.m \
|
||||||
UIxRecurrenceEditor.m \
|
UIxRecurrenceEditor.m \
|
||||||
UIxReminderEditor.m
|
UIxReminderEditor.m \
|
||||||
|
UIxOccurenceEditor.m
|
||||||
SchedulerUI_RESOURCE_FILES += \
|
SchedulerUI_RESOURCE_FILES += \
|
||||||
product.plist
|
product.plist
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
/* UIxOccurenceEditor.h - this file is part of SOGo
|
||||||
|
*
|
||||||
|
* Copyright (C) 2008-2020 Inverse inc.
|
||||||
|
*
|
||||||
|
* This file is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* This file is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef UIXOCCURENCEEDITOR_H
|
||||||
|
#define UIXOCCURENCEEDITOR_H
|
||||||
|
|
||||||
|
|
||||||
|
@class NSString;
|
||||||
|
|
||||||
|
#import <UI/SOGoUI/SOGoDirectAction.h>
|
||||||
|
|
||||||
|
@interface UIxOccurenceEditor : SOGoDirectAction
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif /* UIXOCCURENCEEDITOR_H */
|
|
@ -0,0 +1,43 @@
|
||||||
|
/* UIxOccurenceEditor.m - this file is part of SOGo
|
||||||
|
*
|
||||||
|
* Copyright (C) 2008-2020 Inverse inc.
|
||||||
|
*
|
||||||
|
* This file is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* This file is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; see the file COPYING. If not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#import <NGObjWeb/WOResponse.h>
|
||||||
|
|
||||||
|
#import <SoObjects/Appointments/SOGoCalendarComponent.h>
|
||||||
|
|
||||||
|
#import "UIxOccurenceEditor.h"
|
||||||
|
|
||||||
|
@implementation UIxOccurenceEditor
|
||||||
|
|
||||||
|
- (WOResponse *) deleteAction
|
||||||
|
{
|
||||||
|
SOGoCalendarComponent *component;
|
||||||
|
WOResponse *response;
|
||||||
|
|
||||||
|
component = [self clientObject];
|
||||||
|
response = (WOResponse *) [component prepareDelete];
|
||||||
|
if (!response)
|
||||||
|
response = [self responseWithStatus: 204];
|
||||||
|
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
Loading…
Reference in New Issue