SUPPORT-9173: add progress bar; fix loader css
This commit is contained in:
parent
f049f1cb62
commit
8c138901b1
2 changed files with 19 additions and 7 deletions
|
|
@ -385,7 +385,16 @@ body.webbpm.ervu_lkrp_ul {
|
|||
}
|
||||
/*--------------- end Login -------------- */
|
||||
|
||||
.webbpm.ervu_lkrp_ul .loader {
|
||||
.webbpm.ervu_lkrp_ul .modal.show.loader .modal-content {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.webbpm.ervu_lkrp_ul .modal.show.loader .modal-dialog {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.webbpm.ervu_lkrp_ul .loader:not(.modal) {
|
||||
font-size: 15px;
|
||||
left: calc(50% - 0.4em);
|
||||
top: calc(50% - 0.4em);
|
||||
|
|
|
|||
|
|
@ -61,6 +61,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",
|
||||
{
|
||||
|
|
@ -74,6 +75,7 @@ export abstract class AuthGuard implements CanActivate {
|
|||
.toPromise()
|
||||
.then(
|
||||
() => {
|
||||
this.progressIndicationService.hideProgressBar();
|
||||
window.open(url.origin + url.pathname, "_self");
|
||||
})
|
||||
.catch(reason => {
|
||||
|
|
@ -81,7 +83,8 @@ export abstract class AuthGuard implements CanActivate {
|
|||
json.messages.forEach((errorMessage) => {
|
||||
this.messageService.error(errorMessage, json);
|
||||
})
|
||||
});
|
||||
})
|
||||
.finally(() => this.progressIndicationService.hideProgressBar());
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue