diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 3f1fa9b07..1ae856576 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -64,45 +64,6 @@ [[self clientObject] baseURL]]; } -- (NSString *) _toolbarForCalObject -{ - SOGoUser *currentUser; - SOGoAppointmentObject *clientObject; - NSString *filename, *email; - iCalPerson *person; - iCalPersonPartStat participationStatus; - - clientObject = [self clientObject]; - currentUser = [[self context] activeUser]; - email = [currentUser email]; - if ([clientObject isOrganizer: email - orOwner: [currentUser login]]) - filename = @"SOGoAppointmentObject.toolbar"; - else - { - if ([clientObject isParticipant: email]) - { - person = [[clientObject component: NO] findParticipantWithEmail: email]; - participationStatus = [person participationStatus]; - if (participationStatus == iCalPersonPartStatAccepted) - filename = @"SOGoAppointmentObjectDecline.toolbar"; - else if (participationStatus == iCalPersonPartStatDeclined) - filename = @"SOGoAppointmentObjectAccept.toolbar"; - else - filename = @"SOGoAppointmentObjectAcceptOrDecline.toolbar"; - } - else - filename = @"SOGoComponentClose.toolbar"; - } - - return filename; -} - -- (NSString *) toolbar -{ - return ([self _toolbarForCalObject]); -} - /* icalendar values */ - (BOOL) isAllDay { diff --git a/UI/Scheduler/UIxTaskEditor.m b/UI/Scheduler/UIxTaskEditor.m index 360cdf019..cc2627085 100644 --- a/UI/Scheduler/UIxTaskEditor.m +++ b/UI/Scheduler/UIxTaskEditor.m @@ -79,45 +79,6 @@ [[self clientObject] baseURL]]; } -- (NSString *) _toolbarForCalObject -{ - SOGoUser *currentUser; - SOGoTaskObject *clientObject; - NSString *filename, *email; - iCalPerson *person; - iCalPersonPartStat participationStatus; - - clientObject = [self clientObject]; - currentUser = [[self context] activeUser]; - email = [currentUser email]; - if ([clientObject isOrganizer: email - orOwner: [currentUser login]]) - filename = @"SOGoTaskObject.toolbar"; - else - { - if ([clientObject isParticipant: email]) - { - person = [[clientObject component: NO] findParticipantWithEmail: email]; - participationStatus = [person participationStatus]; - if (participationStatus == iCalPersonPartStatAccepted) - filename = @"SOGoTaskObjectDecline.toolbar"; - else if (participationStatus == iCalPersonPartStatDeclined) - filename = @"SOGoTaskObjectAccept.toolbar"; - else - filename = @"SOGoTaskObjectAcceptOrDecline.toolbar"; - } - else - filename = @"SOGoComponentClose.toolbar"; - } - - return filename; -} - -- (NSString *) toolbar -{ - return ([self _toolbarForCalObject]); -} - /* icalendar values */ - (void) setTaskStartDate: (NSCalendarDate *) newTaskStartDate { diff --git a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox index 82a06b307..d918e7bd6 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentEditor.wox @@ -9,7 +9,6 @@ xmlns:label="OGo:label" className="UIxComponentEditor" var:component="event" - var:toolbar="toolbar" var:saveURL="saveURL">