diff options
Diffstat (limited to 'client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts b/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts index c80ea2e6b..dd9fe0a5a 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { LinkType } from 'src/types/link.type' | 1 | import { LinkType } from 'src/types/link.type' |
2 | import { Component, Input, OnInit } from '@angular/core' | 2 | import { Component, Input, OnInit } from '@angular/core' |
3 | import { VideoPlaylist } from './video-playlist.model' | 3 | import { VideoPlaylist } from './video-playlist.model' |
4 | import { MarkdownService } from '@app/core' | ||
4 | 5 | ||
5 | @Component({ | 6 | @Component({ |
6 | selector: 'my-video-playlist-miniature', | 7 | selector: 'my-video-playlist-miniature', |
@@ -22,9 +23,17 @@ export class VideoPlaylistMiniatureComponent implements OnInit { | |||
22 | routerLink: any | 23 | routerLink: any |
23 | playlistHref: string | 24 | playlistHref: string |
24 | playlistTarget: string | 25 | playlistTarget: string |
26 | playlistDescription: string | ||
25 | 27 | ||
26 | ngOnInit () { | 28 | constructor ( |
29 | private markdownService: MarkdownService | ||
30 | ) {} | ||
31 | |||
32 | async ngOnInit () { | ||
27 | this.buildPlaylistUrl() | 33 | this.buildPlaylistUrl() |
34 | if (this.displayDescription) { | ||
35 | this.playlistDescription = await this.markdownService.textMarkdownToHTML(this.playlist.description) | ||
36 | } | ||
28 | } | 37 | } |
29 | 38 | ||
30 | buildPlaylistUrl () { | 39 | buildPlaylistUrl () { |