Skip to content

A self-hosted media server and file management system

fix: video card cant open in new tab with context menu

aminnausina5c25885e40f
diff --git a/resources/js/components/cards/data/VideoCard.vue b/resources/js/components/cards/data/VideoCard.vue
index bd4ce53f..409f414b 100644
--- a/resources/js/components/cards/data/VideoCard.vue
+++ b/resources/js/components/cards/data/VideoCard.vue
@@ -20,6 +20,7 @@ import MediaTag from '@/components/labels/MediaTag.vue';
import TablerMicrophone2 from '~icons/tabler/microphone-2';
import ProiconsComment from '~icons/proicons/comment';
import CircumShare1 from '~icons/circum/share-1';
+import ProiconsPlay from '~icons/proicons/play';
import CircumEdit from '~icons/circum/edit';
const emit = defineEmits(['clickAction', 'otherAction']);
@@ -52,6 +53,14 @@ const contextMenuItems = computed(() => {
emit('otherAction', videoData?.id, 'share');
},
},
+ {
+ text: 'Open in New Tab',
+ icon: ProiconsPlay,
+ action: () => {
+ if (!videoData?.id) return;
+ window.open(`/${stateDirectory.value.name}/${stateFolder.value.name}`, '_blank');
+ },
+ },
];
return items;
});