Bladeren bron

refactor: renamed ViewSong to ViewMedia

Kristian Vos 1 jaar geleden
bovenliggende
commit
c15846ef68

+ 1 - 1
frontend/src/components/ModalManager.vue

@@ -27,7 +27,7 @@ const modalComponents = shallowRef(
 		importArtist: "ImportArtist.vue",
 		confirm: "Confirm.vue",
 		editSong: "EditSong/index.vue",
-		viewSong: "ViewSong.vue",
+		viewMedia: "ViewMedia.vue",
 		bulkEditPlaylist: "BulkEditPlaylist.vue",
 		convertSpotifySongs: "ConvertSpotifySongs.vue",
 		replaceSpotifySongs: "ReplaceSpotifySongs.vue"

+ 4 - 4
frontend/src/components/SongItem.vue

@@ -120,10 +120,10 @@ const hoverTippy = () => {
 	hoveredTippy.value = true;
 };
 
-const viewSong = mediaSource => {
+const viewMedia = mediaSource => {
 	hideTippyElements();
 	openModal({
-		modal: "viewSong",
+		modal: "viewMedia",
 		props: {
 			mediaSource
 		}
@@ -275,8 +275,8 @@ onUnmounted(() => {
 									(songMediaType === 'youtube' ||
 										songMediaType === 'soundcloud')
 								"
-								@click="viewSong(song.mediaSource)"
-								content="View Song"
+								@click="viewMedia(song.mediaSource)"
+								content="View Media"
 								v-tippy
 							>
 								<div

+ 1 - 1
frontend/src/components/YoutubePlayer.vue

@@ -177,7 +177,7 @@ const sendActivityWatchMediaData = () => {
 				activityWatchMediaLastStartDuration.value <= 0
 					? 0
 					: activityWatchMediaLastStartDuration.value,
-			source: `viewSong#${props.song.mediaSource}`,
+			source: `viewMedia#${props.song.mediaSource}`,
 			hostname: window.location.hostname,
 			playerState: Object.keys(window.YT.PlayerState).find(
 				key =>

+ 0 - 0
frontend/src/components/modals/ViewSong.vue → frontend/src/components/modals/ViewMedia.vue


+ 1 - 1
frontend/src/pages/Admin/YouTube/Videos.vue

@@ -322,7 +322,7 @@ const removeVideos = videoIds => {
 						class="button is-primary icon-with-button material-icons"
 						@click="
 							openModal({
-								modal: 'viewSong',
+								modal: 'viewMedia',
 								props: {
 									mediaSource: `youtube:${slotProps.item.youtubeId}`
 								}