Skip to content

Commit

Permalink
feat(admin-ui): Add permissions checks to main nav items
Browse files Browse the repository at this point in the history
Relates to #94
  • Loading branch information
michaelbromley committed Sep 20, 2019
1 parent d2b52ce commit 78201fb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="sidenav" [clr-nav-level]="2">
<section class="sidenav-content">
<section class="nav-group">
<section class="nav-group" *vdrIfPermissions="'ReadCatalog'">
<input id="catalog" type="checkbox" />
<label for="catalog">{{ 'nav.catalog' | translate }}</label>
<ul class="nav-list">
Expand Down Expand Up @@ -40,7 +40,7 @@
</li>
</ul>
</section>
<section class="nav-group">
<section class="nav-group" *vdrIfPermissions="'ReadOrder'">
<input id="sales" type="checkbox" />
<label for="sales">{{ 'nav.sales' | translate }}</label>
<ul class="nav-list">
Expand All @@ -52,7 +52,7 @@
</li>
</ul>
</section>
<section class="nav-group">
<section class="nav-group" *vdrIfPermissions="'ReadCustomer'">
<input id="tabexample2" type="checkbox" />
<label for="tabexample2">{{ 'nav.customers' | translate }}</label>
<ul class="nav-list">
Expand All @@ -64,7 +64,7 @@
</li>
</ul>
</section>
<section class="nav-group">
<section class="nav-group" *vdrIfPermissions="'ReadPromotion'">
<input id="marketing" type="checkbox" />
<label for="marketing">{{ 'nav.marketing' | translate }}</label>
<ul class="nav-list">
Expand All @@ -76,7 +76,7 @@
</li>
</ul>
</section>
<section class="nav-group collapsible">
<section class="nav-group collapsible" *vdrIfPermissions="'ReadSettings'">
<input id="settings" type="checkbox" checked="true" />
<label for="settings">{{ 'nav.settings' | translate }}</label>
<ul class="nav-list">
Expand Down

0 comments on commit 78201fb

Please sign in to comment.