fix(xtream): reset search text after navigation

This commit is contained in:
4gray committed 2023-08-06 22:50:11 +02:00
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,