Explorar o código

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

Kristian Vos %!s(int64=2) %!d(string=hai) anos
pai
achega
8323a3152f
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      frontend/src/components/modals/ViewYoutubeVideo.vue

+ 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