mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Few more tweaks for automation
This commit is contained in:
parent
9670738a52
commit
57dfbd6748
2 changed files with 7 additions and 3 deletions
|
@ -8,13 +8,13 @@
|
||||||
<img class="rating-small" src="{{baseUrl}}/images/{{ratings.class === 'rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg'}}"> {{ratings.score}}%
|
<img class="rating-small" src="{{baseUrl}}/images/{{ratings.class === 'rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg'}}"> {{ratings.score}}%
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="streams?.length > 0" class="streaming-on-container">
|
<div *ngIf="streams?.length > 0" id="streamingContainer" class="streaming-on-container">
|
||||||
<hr>
|
<hr>
|
||||||
<div class="streaming-on-content">
|
<div class="streaming-on-content">
|
||||||
<span class="label">{{'MediaDetails.StreamingOn' | translate }}:</span>
|
<span class="label">{{'MediaDetails.StreamingOn' | translate }}:</span>
|
||||||
<div>
|
<div>
|
||||||
<span *ngFor="let stream of streams">
|
<span *ngFor="let stream of sortBy('order')">
|
||||||
<img class="stream-small" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{stream.logo}}">
|
<img class="stream-small" id="stream{{stream.streamingProvider}}" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{stream.logo}}">
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -35,4 +35,8 @@ export class TvInformationPanelComponent implements OnInit {
|
||||||
});
|
});
|
||||||
this.seasonCount = this.tv.seasonRequests.length;
|
this.seasonCount = this.tv.seasonRequests.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sortBy(prop: string) {
|
||||||
|
return this.streams.sort((a, b) => a[prop] > b[prop] ? 1 : a[prop] === b[prop] ? 0 : -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue