mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 17:36:15 -08:00
refactor(portals): hide categories when portal is invalid
This commit is contained in:
1 parent
53dba71dc4
commit
009dc3e4b9
2 files changed
+17
-17
No files matched your search
@@ -3,24 +3,23 @@
|
||||
<mat-icon>home</mat-icon> Playlists
|
||||
</button>
|
||||
|
||||
<div>
|
||||
<mat-button-toggle-group
|
||||
name="contentType"
|
||||
aria-label="Content Type"
|
||||
[value]="contentType"
|
||||
(change)="changeContentType($event.value)"
|
||||
<mat-button-toggle-group
|
||||
*ngIf="showCategories"
|
||||
name="contentType"
|
||||
aria-label="Content Type"
|
||||
[value]="contentType"
|
||||
(change)="changeContentType($event.value)"
|
||||
>
|
||||
<mat-button-toggle
|
||||
*ngFor="
|
||||
let item of contentTypeNavigationItems;
|
||||
trackBy: trackByValue
|
||||
"
|
||||
[value]="item.contentType"
|
||||
>
|
||||
<mat-button-toggle
|
||||
*ngFor="
|
||||
let item of contentTypeNavigationItems;
|
||||
trackBy: trackByValue
|
||||
"
|
||||
[value]="item.contentType"
|
||||
>
|
||||
{{ item.label }}
|
||||
</mat-button-toggle>
|
||||
</mat-button-toggle-group>
|
||||
</div>
|
||||
{{ item.label }}
|
||||
</mat-button-toggle>
|
||||
</mat-button-toggle-group>
|
||||
|
||||
<button mat-button (click)="favoritesClicked.emit()">
|
||||
<mat-icon>star</mat-icon> Favorites
|
||||
|
||||
@@ -32,6 +32,7 @@ export class NavigationBarComponent {
|
||||
@Input() searchVisible = true;
|
||||
@Input() contentTypeNavigationItems: ContentTypeNavigationItem[];
|
||||
@Input() clientSideSearch = true;
|
||||
@Input() showCategories = false;
|
||||
|
||||
@Output() contentTypeChanged = new EventEmitter<ContentType>();
|
||||
@Output() breadcrumbClicked = new EventEmitter<Breadcrumb>();
|
||||
|
||||
Reference in new issue
Block a user