From 71ff302cbc139e61dd81625f273c8c547070e583 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 30 Jun 2024 09:13:58 +0200 Subject: [PATCH] refactor: skip decimal pipe for rating --- .../category-content-view.component.html | 5 +---- .../category-content-view/category-content-view.component.ts | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) 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 1d760e11d..4a3bdf9b1 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 @@ -24,10 +24,7 @@ [matTooltip]="'XTREAM.IMDB_RATING' | translate" > star{{ - item.rating || item.rating_imdb - | number: '1.0-2' - }} + >{{ item.rating || item.rating_imdb }} } diff --git a/src/app/xtream/category-content-view/category-content-view.component.ts b/src/app/xtream/category-content-view/category-content-view.component.ts index ec51dbcaa..bc6298cf9 100644 --- a/src/app/xtream/category-content-view/category-content-view.component.ts +++ b/src/app/xtream/category-content-view/category-content-view.component.ts @@ -1,4 +1,4 @@ -import { DecimalPipe, NgOptimizedImage } from '@angular/common'; +import { NgOptimizedImage } from '@angular/common'; import { Component, EventEmitter, Input, Output, inject } from '@angular/core'; import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; @@ -15,7 +15,6 @@ import { PortalStore } from '../portal.store'; styleUrls: ['./category-content-view.component.scss'], standalone: true, imports: [ - DecimalPipe, FilterPipe, MatCardModule, MatIconModule,