diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-19 09:21:46 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-19 11:30:21 +0200 |
commit | d142c7b9c01735ecebc3511072c0e722ce2edc1b (patch) | |
tree | 5dd57fb6ffea64a65528113c332ce7de7ae3563f /client/src/app/shared/shared-share-modal | |
parent | 3c6a44a18175b85d2a3e0b7c3e975718833e5345 (diff) | |
download | PeerTube-d142c7b9c01735ecebc3511072c0e722ce2edc1b.tar.gz PeerTube-d142c7b9c01735ecebc3511072c0e722ce2edc1b.tar.zst PeerTube-d142c7b9c01735ecebc3511072c0e722ce2edc1b.zip |
Use playlistPosition for playlists instead of videoId
Diffstat (limited to 'client/src/app/shared/shared-share-modal')
-rw-r--r-- | client/src/app/shared/shared-share-modal/video-share.component.ts | 5 |
1 files changed, 2 insertions, 3 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 8d8e8a3a5..f57a50770 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 | |||
@@ -37,6 +37,7 @@ export class VideoShareComponent { | |||
37 | @Input() video: VideoDetails = null | 37 | @Input() video: VideoDetails = null |
38 | @Input() videoCaptions: VideoCaption[] = [] | 38 | @Input() videoCaptions: VideoCaption[] = [] |
39 | @Input() playlist: VideoPlaylist = null | 39 | @Input() playlist: VideoPlaylist = null |
40 | @Input() playlistPosition: number = null | ||
40 | 41 | ||
41 | activeVideoId: TabId = 'url' | 42 | activeVideoId: TabId = 'url' |
42 | activePlaylistId: TabId = 'url' | 43 | activePlaylistId: TabId = 'url' |
@@ -45,8 +46,6 @@ export class VideoShareComponent { | |||
45 | isAdvancedCustomizationCollapsed = true | 46 | isAdvancedCustomizationCollapsed = true |
46 | includeVideoInPlaylist = false | 47 | includeVideoInPlaylist = false |
47 | 48 | ||
48 | private playlistPosition: number = null | ||
49 | |||
50 | constructor (private modalService: NgbModal) { } | 49 | constructor (private modalService: NgbModal) { } |
51 | 50 | ||
52 | show (currentVideoTimestamp?: number, currentPlaylistPosition?: number) { | 51 | show (currentVideoTimestamp?: number, currentPlaylistPosition?: number) { |
@@ -107,7 +106,7 @@ export class VideoShareComponent { | |||
107 | 106 | ||
108 | if (!this.includeVideoInPlaylist) return base | 107 | if (!this.includeVideoInPlaylist) return base |
109 | 108 | ||
110 | return base + '?videoId=' + this.video.uuid | 109 | return base + '?playlistPosition=' + this.playlistPosition |
111 | } | 110 | } |
112 | 111 | ||
113 | notSecure () { | 112 | notSecure () { |