mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
refactor(ui): adjust header flow for selected item
This commit is contained in:
1 parent
876699d732
commit
fb14abbd86
1 file changed
+23
-22
@@ -88,31 +88,32 @@
|
||||
</div>
|
||||
|
||||
<div class="main-content">
|
||||
<div class="content-header">
|
||||
<h2>
|
||||
@if (stalkerStore.selectedItem()) {
|
||||
<button mat-icon-button (click)="goBackToList()">
|
||||
<mat-icon>chevron_left</mat-icon>
|
||||
</button>
|
||||
} @else if (!isItvCategorySelected) {
|
||||
<button mat-icon-button disabled>
|
||||
<mat-icon>category</mat-icon>
|
||||
</button>
|
||||
}
|
||||
@if (!stalkerStore.selectedItem()) {
|
||||
<div class="content-header">
|
||||
<h2>
|
||||
@if (!isItvCategorySelected) {
|
||||
<button mat-icon-button disabled>
|
||||
<mat-icon>category</mat-icon>
|
||||
</button>
|
||||
}
|
||||
|
||||
@if (!isItvCategorySelected) {
|
||||
{{ selectedCategoryTitle() }}
|
||||
}
|
||||
@if (!isItvCategorySelected) {
|
||||
{{ selectedCategoryTitle() }}
|
||||
}
|
||||
|
||||
@if (!contentItems() && !isContentLoading()) {
|
||||
<h2>
|
||||
{{ 'PORTALS.SELECT_CATEGORY' | translate }}
|
||||
</h2>
|
||||
}
|
||||
</h2>
|
||||
</div>
|
||||
@if (!contentItems() && !isContentLoading()) {
|
||||
<h2>
|
||||
{{ 'PORTALS.SELECT_CATEGORY' | translate }}
|
||||
</h2>
|
||||
}
|
||||
</h2>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="scrollable-content">
|
||||
<div
|
||||
class="scrollable-content"
|
||||
[class.no-header]="stalkerStore.selectedItem()"
|
||||
>
|
||||
<router-outlet />
|
||||
</div>
|
||||
<!-- <app-mpv-player-bar /> -->
|
||||
|
||||
Reference in new issue
Block a user