mirror of
https://github.com/immich-app/immich
synced 2025-06-06 13:28:34 +00:00

* feat: server changes for album timeline * feat(web): album timeline view * chore: open api * chore: remove archive action * fix: favorite for non-owners
16 lines
734 B
Svelte
16 lines
734 B
Svelte
<script lang="ts">
|
|
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
|
|
import CreateSharedLinkModal from '$lib/components/shared-components/create-share-link-modal/create-shared-link-modal.svelte';
|
|
import ShareVariantOutline from 'svelte-material-icons/ShareVariantOutline.svelte';
|
|
import { getAssetControlContext } from '../asset-select-control-bar.svelte';
|
|
|
|
let showModal = false;
|
|
const { getAssets } = getAssetControlContext();
|
|
</script>
|
|
|
|
<CircleIconButton title="Share" logo={ShareVariantOutline} on:click={() => (showModal = true)} />
|
|
|
|
{#if showModal}
|
|
<CreateSharedLinkModal assetIds={Array.from(getAssets()).map(({ id }) => id)} on:close={() => (showModal = false)} />
|
|
{/if}
|