SUPPORT-9173: add progress bar; fix loader css
This commit is contained in:
parent
a61672198f
commit
3effe61608
2 changed files with 22 additions and 10 deletions
|
|
@ -384,7 +384,16 @@ body.webbpm.ervu_lkrp_fl {
|
||||||
}
|
}
|
||||||
/*--------------- end Login -------------- */
|
/*--------------- 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;
|
font-size: 15px;
|
||||||
left: calc(50% - 0.4em);
|
left: calc(50% - 0.4em);
|
||||||
top: calc(50% - 0.4em);
|
top: calc(50% - 0.4em);
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (code && state) {
|
if (code && state) {
|
||||||
|
this.progressIndicationService.showProgressBar();
|
||||||
const params = new HttpParams().set('code', code).set('state', state);
|
const params = new HttpParams().set('code', code).set('state', state);
|
||||||
this.httpClient.get("esia/auth",
|
this.httpClient.get("esia/auth",
|
||||||
{
|
{
|
||||||
|
|
@ -58,6 +59,7 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(
|
.then(
|
||||||
() => {
|
() => {
|
||||||
|
this.progressIndicationService.hideProgressBar();
|
||||||
window.open(url.origin + url.pathname, "_self");
|
window.open(url.origin + url.pathname, "_self");
|
||||||
})
|
})
|
||||||
.catch(reason => {
|
.catch(reason => {
|
||||||
|
|
@ -65,7 +67,8 @@ export abstract class AuthGuard implements CanActivate {
|
||||||
json.messages.forEach((errorMessage) => {
|
json.messages.forEach((errorMessage) => {
|
||||||
this.messageService.error(errorMessage, json);
|
this.messageService.error(errorMessage, json);
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
|
.finally(() => this.progressIndicationService.hideProgressBar());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue