mirror of https://github.com/Ombi-app/Ombi
parent
f999b0d19f
commit
98346d1c86
@ -0,0 +1,71 @@
|
||||
<mat-accordion class="mat-elevation-z8 spacing-below">
|
||||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
{{'MediaDetails.AlbumsTitle' | translate}}
|
||||
</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
|
||||
<div class="row card-spacer">
|
||||
|
||||
<div class="col-md-2" *ngFor="let r of albums">
|
||||
<div class="sidebar affixable affix-top preview-poster">
|
||||
<div class="poster">
|
||||
<!-- <img class="real grow" matTooltip="{{r.title}}"
|
||||
src="{{r.title}}" alt="Poster"
|
||||
style="display: block;"> -->
|
||||
{{r.title}} | {{r.type}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
|
||||
<mat-expansion-panel *ngIf="ep">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
{{'MediaDetails.SinglesTitle' | translate}}
|
||||
</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
|
||||
<div class="row card-spacer">
|
||||
|
||||
<div class="col-md-2" *ngFor="let r of singles">
|
||||
<div class="sidebar affixable affix-top preview-poster">
|
||||
<div class="poster">
|
||||
<!-- <img class="real grow" matTooltip="{{r.title}}"
|
||||
src="{{r.title}}" alt="Poster"
|
||||
style="display: block;"> -->
|
||||
{{r.title}} | {{r.type}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
|
||||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
{{'MediaDetails.EpTitle' | translate}}
|
||||
</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
|
||||
<div class="row card-spacer">
|
||||
|
||||
<div class="col-md-2" *ngFor="let r of ep">
|
||||
<div class="sidebar affixable affix-top preview-poster">
|
||||
<div class="poster">
|
||||
<!-- <img class="real grow" matTooltip="{{r.title}}"
|
||||
src="{{r.title}}" alt="Poster"
|
||||
style="display: block;"> -->
|
||||
{{r.title}} | {{r.type}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
|
||||
</mat-accordion>
|
@ -0,0 +1,23 @@
|
||||
import { Component, Input, ViewEncapsulation, OnInit } from "@angular/core";
|
||||
import { IReleaseGroups } from "../../../../../interfaces/IMusicSearchResultV2";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./artist-release-panel.component.html",
|
||||
styleUrls: ["../../../../media-details.component.scss"],
|
||||
selector: "artist-release-panel",
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class ArtistReleasePanel implements OnInit {
|
||||
|
||||
@Input() public releases: IReleaseGroups[];
|
||||
|
||||
public albums: IReleaseGroups[];
|
||||
public singles: IReleaseGroups[];
|
||||
public ep: IReleaseGroups[];
|
||||
|
||||
public ngOnInit(): void {
|
||||
this.albums = this.releases.filter(x => x.type === "Album");
|
||||
this.singles = this.releases.filter(x => x.type === "Single");
|
||||
this.ep = this.releases.filter(x => x.type === "EP");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue