diff --git a/apps/web/src/app/xtream/category-view/category-view.component.ts b/apps/web/src/app/xtream/category-view/category-view.component.ts
index 8c308a56e..579e5c993 100644
--- a/apps/web/src/app/xtream/category-view/category-view.component.ts
+++ b/apps/web/src/app/xtream/category-view/category-view.component.ts
@@ -2,7 +2,7 @@ import { Component, inject, input, output } from '@angular/core';
import { MatCardModule } from '@angular/material/card';
import { MatIconModule } from '@angular/material/icon';
import { FilterPipe } from '@iptvnator/pipes';
-import { TranslateModule } from '@ngx-translate/core';
+import { TranslatePipe } from '@ngx-translate/core';
import { XtreamCategory } from 'shared-interfaces';
import { PlaylistErrorViewComponent } from '../playlist-error-view/playlist-error-view.component';
import { PortalStore } from '../portal.store';
@@ -10,36 +10,46 @@ import { PortalStore } from '../portal.store';
@Component({
selector: 'app-category-view',
template: `
- @if (items?.length > 0) { @for ( item of items() | filterBy:
- searchPhrase() : 'category_name'; track $index ) {
-
-
- {{ item.category_name || item.name || 'No category name' }}
-
-
- } @if ( !(items() | filterBy: searchPhrase() : 'category_name')?.length
- ) {
-
- } } @else {
-
+ @if (items().length > 0) {
+ @for (
+ item of items() | filterBy: searchPhrase() : 'category_name';
+ track $index
+ ) {
+
+
+ {{
+ item.category_name ||
+ item.name ||
+ 'No category name'
+ }}
+
+
+ }
+ @if (
+ !(items() | filterBy: searchPhrase() : 'category_name')?.length
+ ) {
+
+ }
+ } @else {
+
}
`,
styleUrl: './category-view.component.scss',
@@ -48,7 +58,7 @@ import { PortalStore } from '../portal.store';
MatCardModule,
MatIconModule,
PlaylistErrorViewComponent,
- TranslateModule,
+ TranslatePipe,
],
})
export class CategoryViewComponent {