diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2022-01-15 07:53:46 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-01-15 09:34:58 +0100 |
commit | c333ec098db1304bc03de548ad60e9b94f6e47ad (patch) | |
tree | c7655af9dd0e88622414d2172ec59b8ac1cbf0f0 /client/src/app/menu/menu.component.html | |
parent | 884b17773d113d71472fe86f7076087c784943a6 (diff) | |
download | PeerTube-c333ec098db1304bc03de548ad60e9b94f6e47ad.tar.gz PeerTube-c333ec098db1304bc03de548ad60e9b94f6e47ad.tar.zst PeerTube-c333ec098db1304bc03de548ad60e9b94f6e47ad.zip |
menu: hide undefined icons
Hide my-global-icon when custom menu items are added without icon property.
Diffstat (limited to 'client/src/app/menu/menu.component.html')
-rw-r--r-- | client/src/app/menu/menu.component.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index 48b3fdc85..5b9e821a7 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html | |||
@@ -110,7 +110,7 @@ | |||
110 | <div i18n class="block-title">{{ menuSection.title }}</div> | 110 | <div i18n class="block-title">{{ menuSection.title }}</div> |
111 | 111 | ||
112 | <a class="menu-link" *ngFor="let link of menuSection.links" [routerLink]="link.path" routerLinkActive="active"> | 112 | <a class="menu-link" *ngFor="let link of menuSection.links" [routerLink]="link.path" routerLinkActive="active"> |
113 | <my-global-icon [iconName]="link.icon" aria-hidden="true"></my-global-icon> | 113 | <my-global-icon *ngIf="link.icon" [iconName]="link.icon" aria-hidden="true"></my-global-icon> |
114 | <ng-container>{{ link.shortLabel }}</ng-container> | 114 | <ng-container>{{ link.shortLabel }}</ng-container> |
115 | </a> | 115 | </a> |
116 | </div> | 116 | </div> |