Fix missing loader

This commit is contained in:
Peter Maquiran
2021-07-13 13:41:09 +01:00
parent b8d4caa42b
commit 83853bbbc4
7 changed files with 146 additions and 120 deletions
@@ -45,7 +45,7 @@ export class ApproveEventModalPage implements OnInit {
private toastService: ToastService,
) {
alert('54321')
this.activatedRoute.paramMap.subscribe(paramMap =>
{
if (!paramMap.has("serialNumber")){
@@ -58,6 +58,7 @@ export class ApproveEventPage implements OnInit {
this.caller = params["params"].caller;
}
});
}
ngOnInit() {
@@ -187,8 +188,7 @@ export class ApproveEventPage implements OnInit {
}
}
async getAttachments(instanceId:string){
const loader = this.toastService.loading()
async getAttachments(instanceId:string) {
try {
this.loadedAttachments = await this.attachmentsService.getAttachmentsById(instanceId).toPromise();