mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
* Fixed not showing the view on X button for TV shows
* Fixed the banners for Partially available TV shows
This commit is contained in:
parent
f54ac1c401
commit
bb29b547b3
5 changed files with 14 additions and 17 deletions
11
src/Ombi/.vscode/launch.json
vendored
11
src/Ombi/.vscode/launch.json
vendored
|
@ -1,6 +1,17 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Backend",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/bin/Debug/net5.0/ombi.dll",
|
||||
"args": ["--host", "http://localhost:3577"],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"stopAtEntry": false,
|
||||
"console": "internalConsole"
|
||||
},
|
||||
{
|
||||
"name": "ng serve",
|
||||
"type": "chrome",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<div class="card-spacing box" *ngIf="result">
|
||||
<mat-card class="mat-elevation-z8 dark-card grow">
|
||||
<div class="ribbon {{getStatusClass()}} ribbon-top-right"><span>
|
||||
<!-- <i class="ribbon-icon fa {{getAvailbility()}}"></i> -->
|
||||
{{getAvailbilityStatus()}}
|
||||
</span></div>
|
||||
<a [routerLink]="result.type === RequestType.movie ? '/details/movie/' + result.id : '/details/tv/' + result.id">
|
||||
|
|
|
@ -52,19 +52,6 @@ export class DiscoverCardComponent implements OnInit {
|
|||
return "";
|
||||
}
|
||||
|
||||
public getAvailbility(): string {
|
||||
if (this.result.available) {
|
||||
return "fa-check-circle";
|
||||
}
|
||||
if (this.result.approved) {
|
||||
return "fa-check-circle";
|
||||
}
|
||||
if (this.result.requested) {
|
||||
return "fa-question-circle";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public getAvailbilityStatus(): string {
|
||||
if (this.result.available) {
|
||||
return "Available";
|
||||
|
@ -107,7 +94,7 @@ export class DiscoverCardComponent implements OnInit {
|
|||
private updateTvItem(updated: ISearchTvResultV2) {
|
||||
this.result.title = updated.title;
|
||||
this.result.id = updated.id;
|
||||
this.result.available = updated.fullyAvailable;
|
||||
this.result.available = updated.fullyAvailable || updated.partlyAvailable;
|
||||
this.result.posterPath = updated.banner;
|
||||
this.result.requested = updated.requested;
|
||||
this.result.url = updated.imdbId;
|
||||
|
|
|
@ -290,7 +290,7 @@ export class DiscoverComponent implements OnInit {
|
|||
url: undefined,
|
||||
rating: +m.rating,
|
||||
overview: m.overview,
|
||||
approved: m.approved,
|
||||
approved: m.approved || m.partlyAvailable,
|
||||
imdbid: m.imdbId,
|
||||
denied: false,
|
||||
background: m.background
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<div class="col-12 col-lg-3 col-xl-3 media-row">
|
||||
|
||||
<social-icons [homepage]="tv.homepage" [tvdbId]="tv.id" [hasTrailer]="tv.trailer"
|
||||
(openTrailer)="openDialog()" [imdbId]="tv.imdbId" [available]="tv.available"
|
||||
(openTrailer)="openDialog()" [imdbId]="tv.imdbId" [available]="tv.available || tv.partlyAvailable"
|
||||
[plexUrl]="tv.plexUrl" [embyUrl]="tv.embyUrl" [jellyfinUrl]="tv.jellyfinUrl">
|
||||
</social-icons>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue