diff --git a/src/app/xtream/breadcrumb.interface.ts b/src/app/xtream/breadcrumb.interface.ts new file mode 100644 index 000000000..dfb2d38bf --- /dev/null +++ b/src/app/xtream/breadcrumb.interface.ts @@ -0,0 +1,7 @@ +import { XtreamCodeActions } from '../../../shared/xtream-code-actions'; + +export interface Breadcrumb { + action: XtreamCodeActions; + title: string; + category_id?: string; +} diff --git a/src/app/xtream/category-content-view/category-content-view.component.html b/src/app/xtream/category-content-view/category-content-view.component.html index eaae99d38..1ad2ffcf3 100644 --- a/src/app/xtream/category-content-view/category-content-view.component.html +++ b/src/app/xtream/category-content-view/category-content-view.component.html @@ -1,16 +1,8 @@ -
(); - searchText: string; + portalStore = inject(PortalStore); + + searchPhrase = this.portalStore.searchPhrase; trackByFn(_index: number, item: XtreamItem) { return item.stream_id; diff --git a/src/app/xtream/category-view/category-view.component.ts b/src/app/xtream/category-view/category-view.component.ts index b5d2a698d..ed8234210 100644 --- a/src/app/xtream/category-view/category-view.component.ts +++ b/src/app/xtream/category-view/category-view.component.ts @@ -1,30 +1,23 @@ import { NgFor, NgIf } from '@angular/common'; -import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Component, EventEmitter, Input, Output, inject } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; import { XtreamCategory } from '../../../../shared/xtream-category.interface'; import { FilterPipe } from '../../shared/pipes/filter.pipe'; +import { PortalStore } from '../portal.store'; @Component({ selector: 'app-category-view', standalone: true, template: ` -
(); - searchText: string; + portalStore = inject(PortalStore); + + searchText = this.portalStore.searchPhrase; trackByFn(_index: number, item: XtreamCategory) { return item.category_id; diff --git a/src/app/xtream/navigation-bar/navigation-bar.component.html b/src/app/xtream/navigation-bar/navigation-bar.component.html index 19bfdcf41..04385a4f3 100644 --- a/src/app/xtream/navigation-bar/navigation-bar.component.html +++ b/src/app/xtream/navigation-bar/navigation-bar.component.html @@ -26,10 +26,21 @@ info
-