mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
remove unused files
This commit is contained in:
@@ -418,87 +418,87 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
async save() {
|
||||
// async save() {
|
||||
|
||||
this.injectValidation()
|
||||
this.runValidation()
|
||||
// this.injectValidation()
|
||||
// this.runValidation()
|
||||
|
||||
if (this.Form.invalid) return false;
|
||||
if (this.selectedRecurringType != '-1') {
|
||||
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||
}
|
||||
// if (this.Form.invalid) return false;
|
||||
// if (this.selectedRecurringType != '-1') {
|
||||
// this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||
// }
|
||||
|
||||
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc)
|
||||
this.postEvent.Subject = /* this.domSanitazerService.sanitizeInput( */this.postEvent.Subject/* ) */;
|
||||
this.postEvent.Location = /* this.domSanitazerService.sanitizeInput( */this.postEvent.Location/* ) */;
|
||||
this.postEvent.Body.Text = /* this.domSanitazerService.sanitizeInput( */this.postEvent.Body.Text/* ) */;
|
||||
// this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc)
|
||||
// this.postEvent.Subject = /* this.domSanitazerService.sanitizeInput( */this.postEvent.Subject/* ) */;
|
||||
// this.postEvent.Location = /* this.domSanitazerService.sanitizeInput( */this.postEvent.Location/* ) */;
|
||||
// this.postEvent.Body.Text = /* this.domSanitazerService.sanitizeInput( */this.postEvent.Body.Text/* ) */;
|
||||
|
||||
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||
// this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||
|
||||
if (this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||
this.eventsService.editEvent(this.postEvent, 2, 3, null).subscribe(async () => {
|
||||
// if (this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||
// this.eventsService.editEvent(this.postEvent, 2, 3, null).subscribe(async () => {
|
||||
|
||||
if (window['reloadCalendar']) {
|
||||
window['reloadCalendar']()
|
||||
}
|
||||
// if (window['reloadCalendar']) {
|
||||
// window['reloadCalendar']()
|
||||
// }
|
||||
|
||||
if (this.initCalendarName != this.postEvent.CalendarName) {
|
||||
// if (this.initCalendarName != this.postEvent.CalendarName) {
|
||||
|
||||
let body = {
|
||||
"EventId": this.postEvent.EventId,
|
||||
"CalendarDestinationName": this.postEvent.CalendarName,
|
||||
}
|
||||
try {
|
||||
await this.eventsService.changeAgenda(body).toPromise();
|
||||
} catch (error) { }
|
||||
finally {
|
||||
}
|
||||
// let body = {
|
||||
// "EventId": this.postEvent.EventId,
|
||||
// "CalendarDestinationName": this.postEvent.CalendarName,
|
||||
// }
|
||||
// try {
|
||||
// await this.eventsService.changeAgenda(body).toPromise();
|
||||
// } catch (error) { }
|
||||
// finally {
|
||||
// }
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
this.httpErrorHandle.httpsSucessMessagge('Editar evento')
|
||||
// this.httpErrorHandle.httpsSucessMessagge('Editar evento')
|
||||
|
||||
}, error => {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
});
|
||||
} else {
|
||||
console.log('edid calendar id', this.postEvent.CalendarId);
|
||||
this.eventsService.editEvent(this.postEvent, 2, 3, this.postEvent.CalendarId).subscribe(async () => {
|
||||
// }, error => {
|
||||
// this.httpErrorHandle.httpStatusHandle(error)
|
||||
// });
|
||||
// } else {
|
||||
// console.log('edid calendar id', this.postEvent.CalendarId);
|
||||
// this.eventsService.editEvent(this.postEvent, 2, 3, this.postEvent.CalendarId).subscribe(async () => {
|
||||
|
||||
if (window['reloadCalendar']) {
|
||||
window['reloadCalendar']()
|
||||
}
|
||||
// if (window['reloadCalendar']) {
|
||||
// window['reloadCalendar']()
|
||||
// }
|
||||
|
||||
if (this.initCalendarName != this.postEvent.CalendarName) {
|
||||
// if (this.initCalendarName != this.postEvent.CalendarName) {
|
||||
|
||||
let body = {
|
||||
"EventId": this.postEvent.EventId,
|
||||
"CalendarDestinationName": this.postEvent.CalendarName,
|
||||
}
|
||||
try {
|
||||
await this.eventsService.changeAgenda(body).toPromise();
|
||||
} catch (error) { }
|
||||
finally {
|
||||
}
|
||||
// let body = {
|
||||
// "EventId": this.postEvent.EventId,
|
||||
// "CalendarDestinationName": this.postEvent.CalendarName,
|
||||
// }
|
||||
// try {
|
||||
// await this.eventsService.changeAgenda(body).toPromise();
|
||||
// } catch (error) { }
|
||||
// finally {
|
||||
// }
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
this.httpErrorHandle.httpsSucessMessagge('Editar evento')
|
||||
// this.httpErrorHandle.httpsSucessMessagge('Editar evento')
|
||||
|
||||
}, error => {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
});
|
||||
}
|
||||
// }, error => {
|
||||
// this.httpErrorHandle.httpStatusHandle(error)
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
this.isEventEdited = true;
|
||||
// this.isEventEdited = true;
|
||||
|
||||
|
||||
await this.saveDocument()
|
||||
// await this.saveDocument()
|
||||
|
||||
this.goBack();
|
||||
}
|
||||
// this.goBack();
|
||||
// }
|
||||
|
||||
|
||||
async saveDocument() {
|
||||
|
||||
Reference in New Issue
Block a user