From 15425911eb7dfbf715ff080b77ceddc398a81d15 Mon Sep 17 00:00:00 2001 From: "adel.kalimullin" Date: Tue, 15 Apr 2025 12:58:15 +0300 Subject: [PATCH] SUPPORT-9114: add css to webbpm-component --- .../ts/modules/webbpm/component/webbpm.component.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/src/ts/modules/webbpm/component/webbpm.component.ts b/frontend/src/ts/modules/webbpm/component/webbpm.component.ts index 43f582c3..193f4020 100644 --- a/frontend/src/ts/modules/webbpm/component/webbpm.component.ts +++ b/frontend/src/ts/modules/webbpm/component/webbpm.component.ts @@ -32,19 +32,16 @@ export class WebbpmComponent { if (event instanceof NavigationEnd) { let navigationEnd = (event); + $(elementRef.nativeElement).removeClass('citizen'); + $(elementRef.nativeElement).removeClass('citizencard'); if (navigationEnd.urlAfterRedirects.startsWith('/citizencard/')) { - $(elementRef.nativeElement).removeClass('citizen'); $(elementRef.nativeElement).addClass('citizencard'); } - else if (navigationEnd.urlAfterRedirects.startsWith('/citizen')) { - $(elementRef.nativeElement).removeClass('citizencard'); + else if (navigationEnd.urlAfterRedirects.startsWith('/citizen') || + navigationEnd.urlAfterRedirects.startsWith('/citizen_all_filters')) { $(elementRef.nativeElement).addClass('citizen'); } - else { - $(elementRef.nativeElement).removeClass('citizen'); - $(elementRef.nativeElement).removeClass('citizencard'); - } } }) }