Improve loader

This commit is contained in:
Peter Maquiran
2021-07-12 11:13:29 +01:00
parent c526426aec
commit 507ebd691a
34 changed files with 400 additions and 32 deletions
@@ -139,7 +139,9 @@ export class ViewEventPage implements OnInit {
});
}
getAttachments(){
getAttachments() {
const loader = this.toastService.loading()
try {
this.attachmentsService.getAttachmentsById(this.eventId).subscribe(res=>{
this.loadedAttachments = res;
@@ -148,6 +150,10 @@ export class ViewEventPage implements OnInit {
} catch (error) {
}
finally {
loader.remove()
}
}
async editEventDetail() {