SearchView: Fixing show title

This commit is contained in:
Zoe Roux 2021-11-11 21:36:22 +01:00
parent 77cf3e89a5
commit 5df3d529c9
No known key found for this signature in database
GPG Key ID: 8BB9CF5EF72AE933
2 changed files with 4 additions and 3 deletions

View File

@ -20,8 +20,8 @@
</button>
</div>
<ng-container *ngIf="displayShowTitle; else noTitle;">
<h6 *ngIf="episode.seasonNumber != 0; else elseBlock;" class="title">{{episode.showTitle}} - S{{episode.seasonNumber}}:E{{episode.episodeNumber}}</h6>
<ng-template #elseBlock><h6 class="title">{{episode.showTitle}}</h6></ng-template>
<h6 *ngIf="episode.seasonNumber != 0; else elseBlock;" class="title">{{episode.show.title}} - S{{episode.seasonNumber}}:E{{episode.episodeNumber}}</h6>
<ng-template #elseBlock><h6 class="title">{{episode.show.title}}</h6></ng-template>
<p class="subtitle">{{episode.title}}</p>
</ng-container>
<ng-template #noTitle>

View File

@ -1,5 +1,6 @@
import { ExternalID } from "../external-id";
import { IResource } from "./resource";
import { Show } from "./show";
export interface Episode extends IResource
{
@ -10,6 +11,6 @@ export interface Episode extends IResource
overview: string;
releaseDate: string;
runtime: number;
showTitle: string;
show: Show;
externalIDs: ExternalID[];
}