Skip to content

Commit

Permalink
fix: hide dev mode for non-admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
gulfaraz committed Feb 11, 2021
1 parent d029331 commit 14597fe
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
type="push"
contentId="ibf-dashboard-interface"
menuId="dev-control"
*ngIf="isDev"
>
<ion-menu-toggle menu="dev-control">
<ion-header>
Expand All @@ -29,7 +28,6 @@
<ion-text>{{ version }}</ion-text>
</ion-item>
<app-country-switcher
[class.ion-hide]="!isDev"
class="ion-align-items-center"
></app-country-switcher>
<app-mock-scenario class="ion-align-items-center"></app-mock-scenario>
Expand All @@ -41,7 +39,10 @@
<ion-header class="ion-no-border">
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-toggle menu="dev-control">
<ion-button href="/" title="Home" [class.ion-hide]="isDev">
<ion-icon name="apps" slot="icon-only"></ion-icon>
</ion-button>
<ion-menu-toggle menu="dev-control" [class.ion-hide]="!isDev">
<ion-button>
<ion-icon name="apps" slot="icon-only"></ion-icon>
</ion-button>
Expand Down

0 comments on commit 14597fe

Please sign in to comment.