fix(web): shared link expiry does not save (#24569)
* fix(web): shared link expiry does not save * chore: fix lint errors --------- Co-authored-by: Alex <alex.tran1502@gmail.com>pull/20418/merge
parent
827bf1ef18
commit
5ade152bc5
|
|
@ -4,7 +4,6 @@
|
||||||
import { SharedLinkType } from '@immich/sdk';
|
import { SharedLinkType } from '@immich/sdk';
|
||||||
import { Button, Field, HStack, Input, Modal, ModalBody, ModalFooter, PasswordInput, Switch, Text } from '@immich/ui';
|
import { Button, Field, HStack, Input, Modal, ModalBody, ModalFooter, PasswordInput, Switch, Text } from '@immich/ui';
|
||||||
import { mdiLink } from '@mdi/js';
|
import { mdiLink } from '@mdi/js';
|
||||||
import { DateTime } from 'luxon';
|
|
||||||
import { t } from 'svelte-i18n';
|
import { t } from 'svelte-i18n';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
@ -19,7 +18,6 @@
|
||||||
let allowDownload = $state(true);
|
let allowDownload = $state(true);
|
||||||
let allowUpload = $state(false);
|
let allowUpload = $state(false);
|
||||||
let showMetadata = $state(true);
|
let showMetadata = $state(true);
|
||||||
let expirationOption: number = $state(0);
|
|
||||||
let password = $state('');
|
let password = $state('');
|
||||||
let slug = $state('');
|
let slug = $state('');
|
||||||
let expiresAt = $state<string | null>(null);
|
let expiresAt = $state<string | null>(null);
|
||||||
|
|
@ -37,7 +35,7 @@
|
||||||
type: shareType,
|
type: shareType,
|
||||||
albumId,
|
albumId,
|
||||||
assetIds,
|
assetIds,
|
||||||
expiresAt: expirationOption > 0 ? DateTime.now().plus(expirationOption).toISO() : undefined,
|
expiresAt,
|
||||||
allowUpload,
|
allowUpload,
|
||||||
description,
|
description,
|
||||||
password,
|
password,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue