Skip to content

A self-hosted media server and file management system

fix: video card share modal does not support timestamps

aminnausin85d5fe40d68f
diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vue
index 4c2dbd4a..0248d45c 100755
--- a/resources/js/views/VideoView.vue
+++ b/resources/js/views/VideoView.vue
@@ -90,7 +90,11 @@ const handleVideoAction = (e: Event, id: number, action: 'edit' | 'share' | 'dow
break;
}
case 'share':
- modal.open(ShareModal, { title: `Share ${mediaTypeDescription.value}`, shareLink: encodeURI(document.location.origin + route.path + `?video=${mediaResource.id}`) });
+ modal.open(ShareModal, {
+ title: `Share ${mediaTypeDescription.value}`,
+ shareLink: encodeURI(document.location.origin + route.path + `?video=${mediaResource.id}`),
+ defaultTimestamp: 0,
+ });
break;
default:
toast.error('Option Unavailable', { description: `You cannot ${action} this file.` });