From 215f3a3e1101478476f963049b4fadeb8ebb568e Mon Sep 17 00:00:00 2001 From: WardPearce Date: Wed, 6 Aug 2025 14:33:24 +1200 Subject: [PATCH] Ablity to include timestamp in share --- .../src/lib/components/ShareVideo.svelte | 35 ++++++++++++++++--- materialious/src/lib/i18n/locales/en.json | 3 +- .../routes/(app)/watch/[slug]/+page.svelte | 2 +- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/materialious/src/lib/components/ShareVideo.svelte b/materialious/src/lib/components/ShareVideo.svelte index 2afff642..f28465f3 100644 --- a/materialious/src/lib/components/ShareVideo.svelte +++ b/materialious/src/lib/components/ShareVideo.svelte @@ -8,20 +8,37 @@ interface Props { video: VideoBase | Video | Notification | PlaylistPageVideo; + currentTime?: number; } - let { video }: Props = $props(); + let { video, currentTime = $bindable() }: Props = $props(); + let includeTimestamp: boolean = $state(false); +{#if currentTime !== undefined} +
  • + +
    {$_('player.share.includeTimestamp')}
    +
  • +
    +{/if}