aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-share-modal/video-share.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-share-modal/video-share.component.ts')
-rw-r--r--client/src/app/shared/shared-share-modal/video-share.component.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.ts b/client/src/app/shared/shared-share-modal/video-share.component.ts
index 70890e551..e6e4bd147 100644
--- a/client/src/app/shared/shared-share-modal/video-share.component.ts
+++ b/client/src/app/shared/shared-share-modal/video-share.component.ts
@@ -3,7 +3,7 @@ import { VideoDetails } from '@app/shared/shared-main'
3import { VideoPlaylist } from '@app/shared/shared-video-playlist' 3import { VideoPlaylist } from '@app/shared/shared-video-playlist'
4import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 4import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
5import { buildPlaylistLink, buildVideoLink, decoratePlaylistLink, decorateVideoLink } from '@shared/core-utils' 5import { buildPlaylistLink, buildVideoLink, decoratePlaylistLink, decorateVideoLink } from '@shared/core-utils'
6import { VideoCaption } from '@shared/models' 6import { VideoCaption, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models'
7import { buildVideoOrPlaylistEmbed } from '../../../assets/player/utils' 7import { buildVideoOrPlaylistEmbed } from '../../../assets/player/utils'
8 8
9type Customizations = { 9type Customizations = {
@@ -126,6 +126,14 @@ export class VideoShareComponent {
126 return this.video.isLocal 126 return this.video.isLocal
127 } 127 }
128 128
129 isPrivateVideo () {
130 return this.video.privacy.id === VideoPrivacy.PRIVATE
131 }
132
133 isPrivatePlaylist () {
134 return this.playlist.privacy.id === VideoPlaylistPrivacy.PRIVATE
135 }
136
129 private getPlaylistOptions (baseUrl?: string) { 137 private getPlaylistOptions (baseUrl?: string) {
130 return { 138 return {
131 baseUrl, 139 baseUrl,