Browse Source
Feature/harmonize use of hasImpersonationId in header component (#5251)
* Harmonize use of hasImpersonationId in header component
pull/5253/head
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
1 deletions
-
apps/client/src/app/components/header/header.component.html
-
apps/client/src/app/components/header/header.component.ts
|
|
@ -205,7 +205,7 @@ |
|
|
|
<ion-icon |
|
|
|
class="mr-2" |
|
|
|
[name]=" |
|
|
|
impersonationId |
|
|
|
hasImpersonationId |
|
|
|
? 'radio-button-off-outline' |
|
|
|
: 'radio-button-on-outline' |
|
|
|
" |
|
|
|
|
|
@ -82,6 +82,7 @@ export class HeaderComponent implements OnChanges { |
|
|
|
@ViewChild('assistantTrigger') assistentMenuTriggerElement: MatMenuTrigger; |
|
|
|
|
|
|
|
public hasFilters: boolean; |
|
|
|
public hasImpersonationId: boolean; |
|
|
|
public hasPermissionForSocialLogin: boolean; |
|
|
|
public hasPermissionForSubscription: boolean; |
|
|
|
public hasPermissionToAccessAdminControl: boolean; |
|
|
@ -124,6 +125,7 @@ export class HeaderComponent implements OnChanges { |
|
|
|
.onChangeHasImpersonation() |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((impersonationId) => { |
|
|
|
this.hasImpersonationId = !!impersonationId; |
|
|
|
this.impersonationId = impersonationId; |
|
|
|
}); |
|
|
|
|
|
|
|