Add loader

This commit is contained in:
Peter Maquiran
2021-07-09 19:27:08 +01:00
parent 228b04586f
commit 85a6d175dc
2 changed files with 18 additions and 0 deletions
@@ -232,6 +232,8 @@ export class NewEventPage implements OnInit {
try {
const loader = this.toastService.loading()
if(this.loggeduser.Profile == 'MDGPR') {
console.log(this.loggeduser.Profile);
@@ -239,12 +241,14 @@ export class NewEventPage implements OnInit {
eventId = await this.eventService.postEventMd(this.postEvent, this.postEvent.CalendarName).toPromise();
console.log(eventId);
loader.remove()
}
else if(this.loggeduser.Profile == 'PR'){
console.log(this.loggeduser.Profile);
eventId = await this.eventService.postEventPr(this.postEvent, this.postEvent.CalendarName).toPromise();
loader.remove()
}
const DocumentToSave: EventAttachment[] = this.documents.map((e) => {