Skip to content

Commit

Permalink
PPF-237 - Hide logout button when platformIsLive
Browse files Browse the repository at this point in the history
  • Loading branch information
brampauwelyn committed Dec 14, 2023
1 parent 547435e commit 78cc217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/topbar/components/topbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<button class="btn btn-outline-secondary" ngbDropdownToggle>
<span class="hidden-lg-down"> {{ user.displayName }}</span>
</button>
<div ngbDropdownMenu class="dropdown-menu dropdown-menu-right">
<div *ngIf="platformIsLive" ngbDropdownMenu class="dropdown-menu dropdown-menu-right">
<button ngbDropdownItem class="dropdown-item" (click)="logout()">
{{ 'TOPBAR_USER_MENU_BUTTON_LOGOUT' | translate }}
</button>
Expand Down
3 changes: 3 additions & 0 deletions src/app/core/topbar/components/topbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export class TopbarComponent implements OnInit, OnDestroy {
*/
private dynamicComponentSubscriptions: any = {};


private platformIsLive: boolean = environment.platformIsLive;

/**
* TopbarComponent constructor
* @param userService
Expand Down

0 comments on commit 78cc217

Please sign in to comment.