Mise à jour articles et produits
This commit is contained in:
@@ -106,67 +106,75 @@
|
||||
</mat-menu>
|
||||
</div>
|
||||
<mat-nav-list appAccordion>
|
||||
@for (menuitem of menuItems.getMenuItems(); track menuitem) {
|
||||
@for (menuitem of getMenuItems(); track menuitem) {
|
||||
<mat-list-item appAccordionLink routerLinkActive="selected" group="{{menuitem.state}}">
|
||||
@if (menuitem.type === 'link') {
|
||||
@if (!menuitem.parent && menuitem.type === 'link') {
|
||||
<a appAccordionToggle [routerLink]="['/', menuitem.state]">
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 mr-2"></mat-icon>
|
||||
@if (menuitem.icontype === 'mat') {
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 me-2"></mat-icon>
|
||||
}
|
||||
@else {
|
||||
<i class="icosvg-{{menuitem.icon}} fs-3 mt-0 me-3"></i>
|
||||
}
|
||||
<span>{{ menuitem.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
@for (badge of menuitem.badge; track badge) {
|
||||
<span matBadge="{{ badge.value }}" matBadgeColor="warn" matBadgeOverlap="false"></span>
|
||||
}
|
||||
</a>
|
||||
}
|
||||
@if (menuitem.type === 'menu') {
|
||||
<a role="button" aria-hidden="true" (click)="toggleShowQCMMenu()" (keyup)="true">
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 mr-2"></mat-icon>
|
||||
}
|
||||
@if (menuitem.type === 'menu') {
|
||||
<a role="button" aria-hidden="true" (click)="toggleShowMenu(menuitem.state)" (keyup)="true">
|
||||
@if (menuitem.icontype === 'mat') {
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 me-2"></mat-icon>
|
||||
}
|
||||
@else {
|
||||
<i class="icosvg-{{menuitem.icon}} fs-3 mt-0 me-3"></i>
|
||||
}
|
||||
<span>{{ menuitem.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
@for (badge of menuitem.badge; track badge) {
|
||||
<span matBadge="{{ badge.value }}" matBadgeColor="warn" matBadgeOverlap="false"></span>
|
||||
}
|
||||
</a>
|
||||
}
|
||||
}
|
||||
</mat-list-item>
|
||||
}
|
||||
@if (showQCMMenu) {
|
||||
<div>
|
||||
@for (menuqcm of menuItems.getMenuQCM(); track menuqcm) {
|
||||
<mat-list-item appAccordionLink routerLinkActive="selected" group="{{ menuqcm.state}}">
|
||||
@if ( menuqcm.type === 'link') {
|
||||
<a class="ps-4" appAccordionToggle [routerLink]="['/qcm', menuqcm.state]">
|
||||
<mat-icon [fontIcon]="menuqcm.icon" class="mt-0 mr-2"></mat-icon>
|
||||
<span>{{ menuqcm.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
</a>
|
||||
@if (menuitem.type === 'menu') {
|
||||
@for (submenuitem of getMenuItems(); track submenuitem) {
|
||||
@if ( isVisibleMenu(menuitem.state) === true && submenuitem.parent === menuitem.state && submenuitem.type === 'link') {
|
||||
<mat-list-item appAccordionLink routerLinkActive="selected" group="{{ submenuitem.state}}">
|
||||
<a class="ps-4" appAccordionToggle [routerLink]="['/' + submenuitem.parent, submenuitem.state]">
|
||||
@if (menuitem.icontype === 'mat') {
|
||||
<mat-icon [fontIcon]="submenuitem.icon" class="mt-0 me-2"></mat-icon>
|
||||
}
|
||||
@else {
|
||||
<i class="icosvg-{{submenuitem.icon}} fs-2 mt-0 me-2"></i>
|
||||
}
|
||||
<span>{{ submenuitem.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
</a>
|
||||
</mat-list-item>
|
||||
}
|
||||
</mat-list-item>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</mat-nav-list>
|
||||
</ng-container>
|
||||
<ng-container *appShowAuthed="false">
|
||||
<div class="user-profile">
|
||||
<!-- <div class="profile-img"> <img src="/assets/images/users/user.jpg" alt="user"> </div> -->
|
||||
<!-- <div class="profile-img"> <img src="/assets/images/avatars/default.jpg" alt="user"> </div> -->
|
||||
</div>
|
||||
<mat-nav-list appAccordion>
|
||||
@for (menuitem of menuItems.getMenuAuth(); track menuitem) {
|
||||
<mat-list-item appAccordionLink routerLinkActive="selected" group="{{menuitem.state}}">
|
||||
@if (menuitem.type === 'link') {
|
||||
<a appAccordionToggle [routerLink]="['/', menuitem.state]">
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 mr-2"></mat-icon>
|
||||
<span>{{ menuitem.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
@for (badge of menuitem.badge; track badge) {
|
||||
<span matBadge="{{ badge.value }}" matBadgeColor="warn" matBadgeOverlap="false"></span>
|
||||
@if (menuitem.icontype === 'mat') {
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 me-2"></mat-icon>
|
||||
}
|
||||
@else {
|
||||
<i class="icosvg-{{menuitem.icon}} fs-2 mt-0 me-2"></i>
|
||||
}
|
||||
</a>
|
||||
}
|
||||
@if (menuitem.type === 'menu') {
|
||||
<a role="button" aria-hidden="true" (click)="showQCMMenu = !showQCMMenu">
|
||||
<mat-icon [fontIcon]="menuitem.icon" class="mt-0 mr-2"></mat-icon>
|
||||
<span>{{ menuitem.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
@for (badge of menuitem.badge; track badge) {
|
||||
@@ -176,21 +184,6 @@
|
||||
}
|
||||
</mat-list-item>
|
||||
}
|
||||
@if (showQCMMenu) {
|
||||
<div>
|
||||
@for (menuqcm of menuItems.getMenuQCM(); track menuqcm) {
|
||||
<mat-list-item appAccordionLink routerLinkActive="selected" group="{{ menuqcm.state}}">
|
||||
@if ( menuqcm.type === 'link') {
|
||||
<a class="ps-4" appAccordionToggle [routerLink]="['/', menuqcm.state]">
|
||||
<mat-icon [fontIcon]="menuqcm.icon" class="mt-0 mr-2"></mat-icon>
|
||||
<span>{{ menuqcm.name }}</span>
|
||||
<span class="flex-spacer"></span>
|
||||
</a>
|
||||
}
|
||||
</mat-list-item>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</mat-nav-list>
|
||||
</ng-container>
|
||||
<app-layout-footer></app-layout-footer>
|
||||
|
||||
Reference in New Issue
Block a user