Skip to content

A self-hosted media server and file management system

fix: autoplay function is called playlist in the UI

aminnausin288cdda37ee7
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index 5d9cef0a..72b37438 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -353,7 +353,7 @@ const videoPopoverItems = computed(() => {
},
},
{
- text: 'Playlist',
+ text: 'Autoplay (p)',
title: `Toggle autoplaying the next ${isAudio.value ? 'track' : 'video'}`,
icon: MagePlaylist,
selectedIcon: ProiconsCheckmark,
@@ -1049,8 +1049,8 @@ const handleKeyBinds = (event: KeyboardEvent, override = false) => {
if (!event.shiftKey) {
isPlaylist.value = !isPlaylist.value; // Toggle playlist with P
const mediaType = stateFolder.value.is_majority_audio ? 'track' : 'video';
- const description = isPlaylist.value ? `Will auto play the next ${mediaType}.` : `Will not autoplay ${mediaType}s.`;
- toast(`Playlist ${isPlaylist.value ? 'Enabled' : 'Disabled'}`, { description });
+ const description = isPlaylist.value ? `Will autoplay the next ${mediaType}.` : `Will not autoplay ${mediaType}s.`;
+ toast(`Autoplay ${isPlaylist.value ? 'Enabled' : 'Disabled'}`, { description });
break;
}
handlePrevious();