remove unused files

This commit is contained in:
Peter Maquiran
2024-06-08 17:18:38 +01:00
parent ef30adcf46
commit cca859b6c4
69 changed files with 1022 additions and 6024 deletions
@@ -130,9 +130,9 @@ export class ViewEventPage implements OnInit {
if(res.isOk()) {
console.log('Loaded Event', res.value)
console.log('newAttahcmentList', res.value.Attachments)
let changeDate = this.dateService.fixDate(res.value as any) as any
this.loadedEvent = changeDate as any;
this.setTimeZone()
@@ -181,66 +181,66 @@ export class ViewEventPage implements OnInit {
});
}
async deleteEvent() {
// async deleteEvent() {
if (this.loadedEvent.IsRecurring) {
const loader = this.toastService.loading()
// if (this.loadedEvent.IsRecurring) {
// const loader = this.toastService.loading()
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () => {
this.httpErrorHandle.httpsSucessMessagge('delete event')
this.close();
},(error)=>{
this.httpErrorHandle.httpStatusHandle(error)
},
()=>{
loader.remove();
});
} else {
// if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
// this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () => {
// this.httpErrorHandle.httpsSucessMessagge('delete event')
// this.close();
// },(error)=>{
// this.httpErrorHandle.httpStatusHandle(error)
// },
// ()=>{
// loader.remove();
// });
// } else {
if(this.CalendarId) {
this.eventsService.genericDeleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName, this.CalendarId).subscribe(async () => {
this.httpErrorHandle.httpsSucessMessagge('delete event');
this.close();
},(error)=>{
this.httpErrorHandle.httpStatusHandle(error)
},
()=>{
loader.remove();
});
}
// if(this.CalendarId) {
// this.eventsService.genericDeleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName, this.CalendarId).subscribe(async () => {
// this.httpErrorHandle.httpsSucessMessagge('delete event');
// this.close();
// },(error)=>{
// this.httpErrorHandle.httpStatusHandle(error)
// },
// ()=>{
// loader.remove();
// });
// }
}
// }
} else {
// } else {
const loader = this.toastService.loading()
// const loader = this.toastService.loading()
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () => {
this.httpErrorHandle.httpsSucessMessagge('delete event');
this.close();
},(error)=>{
this.httpErrorHandle.httpStatusHandle(error)
},
()=>{
loader.remove();
});
} else {
this.eventsService.genericDeleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName, this.CalendarId).subscribe(async () => {
this.httpErrorHandle.httpsSucessMessagge('delete event');
this.close();
},(error)=>{
this.httpErrorHandle.httpStatusHandle(error)
},
()=>{
loader.remove();
});
}
// if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
// this.eventsService.deleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName).subscribe(async () => {
// this.httpErrorHandle.httpsSucessMessagge('delete event');
// this.close();
// },(error)=>{
// this.httpErrorHandle.httpStatusHandle(error)
// },
// ()=>{
// loader.remove();
// });
// } else {
// this.eventsService.genericDeleteEvent(this.loadedEvent.EventId, 0, this.loadedEvent.CalendarName, this.CalendarId).subscribe(async () => {
// this.httpErrorHandle.httpsSucessMessagge('delete event');
// this.close();
// },(error)=>{
// this.httpErrorHandle.httpStatusHandle(error)
// },
// ()=>{
// loader.remove();
// });
// }
}
// }
}
// }
async deleteRecurringEvent() {