diff options
Diffstat (limited to 'client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts index 79b7b9a50..552ea742b 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' | 1 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' |
2 | import { AuthService, Notifier, ServerService } from '@app/core' | 2 | import { AuthService, Notifier, ServerService } from '@app/core' |
3 | import { Video } from '@app/shared/shared-main' | 3 | import { Video, VideoService } from '@app/shared/shared-main' |
4 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' |
5 | import { secondsToTime } from '@shared/core-utils' | 5 | import { secondsToTime } from '@shared/core-utils' |
6 | import { HTMLServerConfig, VideoPlaylistElementType, VideoPlaylistElementUpdate, VideoPrivacy } from '@shared/models' | 6 | import { HTMLServerConfig, VideoPlaylistElementType, VideoPlaylistElementUpdate, VideoPrivacy } from '@shared/models' |
@@ -44,6 +44,7 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit { | |||
44 | private serverService: ServerService, | 44 | private serverService: ServerService, |
45 | private notifier: Notifier, | 45 | private notifier: Notifier, |
46 | private videoPlaylistService: VideoPlaylistService, | 46 | private videoPlaylistService: VideoPlaylistService, |
47 | private videoService: VideoService, | ||
47 | private cdr: ChangeDetectorRef | 48 | private cdr: ChangeDetectorRef |
48 | ) {} | 49 | ) {} |
49 | 50 | ||
@@ -51,6 +52,10 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit { | |||
51 | this.serverConfig = this.serverService.getHTMLConfig() | 52 | this.serverConfig = this.serverService.getHTMLConfig() |
52 | } | 53 | } |
53 | 54 | ||
55 | getVideoOwnerDisplayType (element: VideoPlaylistElement) { | ||
56 | return this.videoService.buildDefaultOwnerDisplayType(element.video) | ||
57 | } | ||
58 | |||
54 | isVideoPrivate () { | 59 | isVideoPrivate () { |
55 | return this.playlistElement.video.privacy.id === VideoPrivacy.PRIVATE | 60 | return this.playlistElement.video.privacy.id === VideoPrivacy.PRIVATE |
56 | } | 61 | } |