feat(web): change link expiration logic & presets (#26064)

* feat(web): link expiration presets

* refactor: implement suggestions

* chore: remove createdAt prop

* fix: tests

* fix: button keys
This commit is contained in:
Yaros
2026-02-12 18:27:49 +01:00
committed by GitHub
parent 72cef8b94b
commit 206a208410
4 changed files with 50 additions and 58 deletions

View File

@@ -11,7 +11,6 @@
allowUpload: boolean;
showMetadata: boolean;
expiresAt: string | null;
createdAt?: string;
};
let {
@@ -22,7 +21,6 @@
allowUpload = $bindable(),
showMetadata = $bindable(),
expiresAt = $bindable(),
createdAt,
}: Props = $props();
$effect(() => {
@@ -50,7 +48,7 @@
<Input bind:value={description} autocomplete="off" />
</Field>
<SharedLinkExpiration {createdAt} bind:expiresAt />
<SharedLinkExpiration bind:expiresAt />
<Field label={$t('show_metadata')}>
<Switch bind:checked={showMetadata} />
</Field>