mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
fix(xtream): reset search text after navigation
This commit is contained in:
1 parent
91568c0705
commit
e06e0d558a
3 files changed
+7
-1
No files matched your search
@@ -8,7 +8,7 @@
|
||||
name="contentType"
|
||||
aria-label="Content Type"
|
||||
[value]="contentType"
|
||||
(change)="contentTypeChanged.emit($event.value)"
|
||||
(change)="changeContentType($event.value)"
|
||||
>
|
||||
<mat-button-toggle
|
||||
*ngFor="
|
||||
|
||||
@@ -48,6 +48,11 @@ export class NavigationBarComponent {
|
||||
this.portalStore.setSearchPhrase(text);
|
||||
}
|
||||
|
||||
changeContentType(type: ContentType) {
|
||||
this.setSearchText('');
|
||||
this.contentTypeChanged.emit(type);
|
||||
}
|
||||
|
||||
trackByValue(_i: number, value: ContentTypeNavigationItem) {
|
||||
return value.contentType;
|
||||
}
|
||||
|
||||
@@ -240,6 +240,7 @@ export class XtreamMainContainerComponent implements OnInit {
|
||||
|
||||
categoryClicked(item: XtreamCategory) {
|
||||
this.items = [];
|
||||
this.portalStore.setSearchPhrase('');
|
||||
const action = ContentTypes[this.selectedContentType].getContentAction;
|
||||
this.breadcrumbs.push({
|
||||
title: item.category_name,
|
||||
|
||||
Reference in new issue
Block a user