loading spinner fix in parent-form

parent 9b9d761c
<div class = "loading" *ngIf="(epalUserData$ | async).userEmail === '' || (showLoader | async) === true"></div> <div class = "loading" *ngIf="(showLoader | async) === true"></div>
<div id="emailSentNotice" (onHidden)="onHidden()" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> <div id="emailSentNotice" (onHidden)="onHidden()" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">
......
...@@ -71,8 +71,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -71,8 +71,9 @@ import {AppSettings} from '../../app.settings';
ngOnInit() { ngOnInit() {
(<any>$('#emailSentNotice')).appendTo("body"); (<any>$('#emailSentNotice')).appendTo("body");
this.showLoader.next(true);
this.epalUserDataSub = this.hds.getEpalUserData().subscribe(x => { this.epalUserDataSub = this.hds.getEpalUserData().subscribe(x => {
this.showLoader.next(false);
this.epalUserData$.next(x); this.epalUserData$.next(x);
this.formGroup.get('userEmail').setValue(x.userEmail); this.formGroup.get('userEmail').setValue(x.userEmail);
this.formGroup.get('userName').setValue(x.userName); this.formGroup.get('userName').setValue(x.userName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment