mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-18 20:43:14 -05:00
27 lines
722 B
TypeScript
27 lines
722 B
TypeScript
import { Component, Input} from '@angular/core';
|
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
import { Episode } from "../../../models/episode";
|
|
import {HorizontalScroller} from "../../misc/horizontal-scroller";
|
|
import {Page} from "../../../models/page";
|
|
|
|
@Component({
|
|
selector: 'app-episodes-list',
|
|
templateUrl: './episodes-list.component.html',
|
|
styleUrls: ['./episodes-list.component.scss']
|
|
})
|
|
export class EpisodesListComponent extends HorizontalScroller
|
|
{
|
|
@Input() displayShowTitle: boolean = false;
|
|
@Input() episodes: Page<Episode>;
|
|
|
|
constructor(private sanitizer: DomSanitizer)
|
|
{
|
|
super();
|
|
}
|
|
|
|
sanitize(url: string)
|
|
{
|
|
return this.sanitizer.bypassSecurityTrustStyle("url(" + url + ")");
|
|
}
|
|
}
|