mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 18:16:55 -07:00
Fixed #3599 and moved the collections button to a more suitable location
This commit is contained in:
parent
636de044ef
commit
e1265046b5
3 changed files with 15 additions and 4 deletions
|
@ -149,9 +149,19 @@ namespace Ombi.Core.Engine.V2
|
|||
|
||||
if (!string.IsNullOrEmpty(item.Images?.Medium))
|
||||
{
|
||||
item.Images.Medium = item.Images.Medium.Replace("http", "https");
|
||||
item.Images.Medium = item.Images.Medium.Replace("http:", "https:");
|
||||
}
|
||||
|
||||
if (item.Cast?.Any() ?? false)
|
||||
{
|
||||
foreach (var cast in item.Cast)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(cast.Character?.Image?.Medium))
|
||||
{
|
||||
cast.Character.Image.Medium = cast.Character?.Image?.Medium.Replace("http:", "https:");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return await GetExtraInfo(showInfoTask, item);
|
||||
}
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
<span *ngIf="!movie.available">
|
||||
<span *ngIf="movie.requested || movie.approved; then requestedBtn else notRequestedBtn"></span>
|
||||
|
||||
<button *ngIf="movie.belongsToCollection" [routerLink]="'/discover/collection/' + movie.belongsToCollection.id" mat-raised-button class="btn-spacing"><i class="fa fa-list"></i> {{'MediaDetails.ViewCollection' | translate}}</button>
|
||||
|
||||
<ng-template #requestedBtn>
|
||||
<button mat-raised-button *ngIf="!hasRequest || hasRequest && movieRequest && !movieRequest.denied" class="btn-spacing" color="warn" [disabled]><i class="fa fa-check"></i>
|
||||
{{ 'Common.Requested' | translate }}</button>
|
||||
|
@ -72,9 +74,7 @@
|
|||
<div class="row">
|
||||
|
||||
<div class="col-12 col-md-2">
|
||||
<button *ngIf="movie.belongsToCollection" [routerLink]="'/discover/collection/' + movie.belongsToCollection.id" mat-raised-button class="spacing-below full-width mat-elevation-z8">{{movie.belongsToCollection.name}}</button>
|
||||
|
||||
<mat-card class="mat-elevation-z8 spacing-below" *ngIf="isAdmin && movieRequest" [ngStyle]="{'display': showAdvanced ? '' : 'none' }">
|
||||
<mat-card class="mat-elevation-z8 spacing-below" *ngIf="isAdmin && movieRequest" [ngStyle]="{'display': showAdvanced ? '' : 'none' }">
|
||||
<mat-card-content class="medium-font">
|
||||
<movie-admin-panel [movie]="movieRequest" (radarrEnabledChange)="showAdvanced = $event" (advancedOptionsChange)="setAdvancedOptions($event)">
|
||||
</movie-admin-panel>
|
||||
|
|
|
@ -225,6 +225,7 @@
|
|||
"RequestAllAlbums": "Request All Albums",
|
||||
"ClearSelection": "Clear Selection",
|
||||
"RequestSelectedAlbums": "Request Selected Albums",
|
||||
"ViewCollection":"View Collection",
|
||||
"Casts": {
|
||||
"CastTitle": "Cast",
|
||||
"Character": "Character",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue