Fixes opening an external player on the watch page passes user playlist (#5263)

* Fixes opening an external player on the watch page passes user playlist

* Make `inUserPlaylist` a required prop
This commit is contained in:
absidue 2024-06-17 00:16:53 +02:00 committed by GitHub
parent 18b20fa123
commit 73ed185cea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,10 @@ export default defineComponent({
videoThumbnail: {
type: String,
required: true
},
inUserPlaylist: {
type: Boolean,
required: true
}
},
emits: ['change-format', 'pause-player', 'set-info-area-sticky', 'scroll-to-info-area'],

View File

@ -119,6 +119,7 @@
:get-playlist-loop="getPlaylistLoop"
:length-seconds="videoLengthSeconds"
:video-thumbnail="thumbnail"
:in-user-playlist="!!selectedUserPlaylist"
class="watchVideo"
:class="{ theatreWatchVideo: useTheatreMode }"
@change-format="handleFormatChange"