SUPPORT-9173: add progress bar; fix loader css

This commit is contained in:
gulnaz 2025-05-15 10:34:27 +03:00
parent a61672198f
commit 3effe61608
2 changed files with 22 additions and 10 deletions

View file

@ -384,7 +384,16 @@ body.webbpm.ervu_lkrp_fl {
}
/*--------------- end Login -------------- */
.webbpm.ervu_lkrp_fl .loader {
.webbpm.ervu_lkrp_fl .modal.show.loader .modal-content {
background: none;
border: none;
}
.webbpm.ervu_lkrp_fl .modal.show.loader .modal-dialog {
margin: auto;
}
.webbpm.ervu_lkrp_fl .loader:not(.modal) {
font-size: 15px;
left: calc(50% - 0.4em);
top: calc(50% - 0.4em);

View file

@ -45,6 +45,7 @@ export abstract class AuthGuard implements CanActivate {
return false;
}
if (code && state) {
this.progressIndicationService.showProgressBar();
const params = new HttpParams().set('code', code).set('state', state);
this.httpClient.get("esia/auth",
{
@ -58,6 +59,7 @@ export abstract class AuthGuard implements CanActivate {
.toPromise()
.then(
() => {
this.progressIndicationService.hideProgressBar();
window.open(url.origin + url.pathname, "_self");
})
.catch(reason => {
@ -65,7 +67,8 @@ export abstract class AuthGuard implements CanActivate {
json.messages.forEach((errorMessage) => {
this.messageService.error(errorMessage, json);
})
});
})
.finally(() => this.progressIndicationService.hideProgressBar());
return false;
}
else {