Skip to content

Commit 15248a6

Browse files
authored
FIX now show usage spec section only to sellers (#171)
1 parent 6df2a12 commit 15248a6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/app/shared/header/header.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@
195195
Analytics
196196
</a>
197197
</li>
198-
<li>
199-
<button data-cy="usageSpecs" id="usageSpecs" (click)="goTo('/usage-spec')" class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faRuler" class="mr-2"></fa-icon>Usage Spec</button>
200-
</li>
198+
@if(roles.includes('seller')){
199+
<li>
200+
<button data-cy="usageSpecs" id="usageSpecs" (click)="goTo('/usage-spec')" class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faRuler" class="mr-2"></fa-icon>Usage Spec</button>
201+
</li>
202+
}
201203
<li>
202204
<button id="myInventory" (click)="goTo('/product-inventory')"class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faBoxesStacked" class="mr-2"></fa-icon>{{ 'HEADER._inventory' | translate }}</button>
203205
</li>

0 commit comments

Comments
 (0)