SUPPORT-9173: add progress bar; fix loader css

This commit is contained in:
gulnaz 2025-05-15 10:36:22 +03:00
parent f049f1cb62
commit 8c138901b1
2 changed files with 19 additions and 7 deletions

View file

@ -81,7 +81,7 @@ body.webbpm.ervu_lkrp_ul {
--size-text-title: 36px; --size-text-title: 36px;
--size-text-subtitle: 20px; --size-text-subtitle: 20px;
--size-text-primary: 18px; --size-text-primary: 18px;
--size-text-secondary: 16px; --size-text-secondary: 16px;
--indent-huge: 48px; --indent-huge: 48px;
--indent-big: 40px; --indent-big: 40px;
@ -94,7 +94,7 @@ body.webbpm.ervu_lkrp_ul {
--l-size-text-title: 40px; --l-size-text-title: 40px;
--l-size-text-subtitle: 32px; --l-size-text-subtitle: 32px;
--l-size-text-primary: 20px; --l-size-text-primary: 20px;
--l-indent-huge: 72px; --l-indent-huge: 72px;
--l-indent-big: 52px; --l-indent-big: 52px;
} }
@ -108,7 +108,7 @@ body.webbpm.ervu_lkrp_ul {
} }
.webbpm.ervu_lkrp_ul .header { .webbpm.ervu_lkrp_ul .header {
font-family: 'Inter'; font-family: 'Inter';
min-height: var(--h-header); min-height: var(--h-header);
border: 0; border: 0;
background-color: var(--color-bg-main); background-color: var(--color-bg-main);
@ -136,7 +136,7 @@ body.webbpm.ervu_lkrp_ul {
} }
.webbpm.ervu_lkrp_ul .header .header-logo .header-menu-left { .webbpm.ervu_lkrp_ul .header .header-logo .header-menu-left {
font-family: 'InterL'; font-family: 'InterL';
margin-left: 24px; margin-left: 24px;
} }
.webbpm.ervu_lkrp_ul .header .header-logo .active { .webbpm.ervu_lkrp_ul .header .header-logo .active {
font-family: 'InterSB'; font-family: 'InterSB';
@ -385,7 +385,16 @@ body.webbpm.ervu_lkrp_ul {
} }
/*--------------- end Login -------------- */ /*--------------- 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; font-size: 15px;
left: calc(50% - 0.4em); left: calc(50% - 0.4em);
top: calc(50% - 0.4em); top: calc(50% - 0.4em);

View file

@ -61,6 +61,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",
{ {
@ -74,6 +75,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 => {
@ -81,7 +83,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 {
@ -107,4 +110,4 @@ export abstract class AuthGuard implements CanActivate {
const match = message.match(regex); const match = message.match(regex);
return match ? match[0] : null; return match ? match[0] : null;
} }
} }