Prechádzať zdrojové kódy

fix: ViewYoutubeVideo create/edit song button didn't open EditSong with proper mediaSource

Kristian Vos 2 rokov pred
rodič
commit
8323a3152f

+ 9 - 1
frontend/src/components/modals/ViewYoutubeVideo.vue

@@ -717,7 +717,15 @@ onBeforeUnmount(() => {
 				"
 				class="button is-primary icon-with-button material-icons"
 				@click.prevent="
-					openModal({ modal: 'editSong', props: { song: video } })
+					openModal({
+						modal: 'editSong',
+						props: {
+							song: {
+								mediaSource: `youtube:${video.youtubeId}`,
+								...video
+							}
+						}
+					})
 				"
 				content="Create/edit song from video"
 				v-tippy