Skip to content

Commit

Permalink
fix(calendar): restore UIxOccurenceDialog
Browse files Browse the repository at this point in the history
Renamed as action class UIxOccurenceEditor.

Fixes #5141
  • Loading branch information
cgx committed Sep 9, 2020
1 parent ac8a7ec commit 9af697a
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/Scheduler/GNUmakefile
Expand Up @@ -37,8 +37,8 @@ SchedulerUI_OBJC_FILES = \
UIxAppointmentEditor.m \
UIxTaskEditor.m \
UIxRecurrenceEditor.m \
UIxReminderEditor.m

UIxReminderEditor.m \
UIxOccurenceEditor.m
SchedulerUI_RESOURCE_FILES += \
product.plist

Expand Down
33 changes: 33 additions & 0 deletions UI/Scheduler/UIxOccurenceEditor.h
@@ -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 */
43 changes: 43 additions & 0 deletions UI/Scheduler/UIxOccurenceEditor.m
@@ -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

0 comments on commit 9af697a

Please sign in to comment.