소스 검색

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

Kristian Vos 2 년 전
부모
커밋
8323a3152f
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  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