mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
fix(web): leave assets selected after creating a shared link (#3531)
This commit is contained in:
parent
a405fba3bb
commit
e4e049d040
@ -6,7 +6,7 @@
|
|||||||
import { getAssetControlContext } from '../asset-select-control-bar.svelte';
|
import { getAssetControlContext } from '../asset-select-control-bar.svelte';
|
||||||
|
|
||||||
let showModal = false;
|
let showModal = false;
|
||||||
const { getAssets, clearSelect } = getAssetControlContext();
|
const { getAssets } = getAssetControlContext();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<CircleIconButton title="Share" logo={ShareVariantOutline} on:click={() => (showModal = true)} />
|
<CircleIconButton title="Share" logo={ShareVariantOutline} on:click={() => (showModal = true)} />
|
||||||
@ -15,9 +15,6 @@
|
|||||||
<CreateSharedLinkModal
|
<CreateSharedLinkModal
|
||||||
sharedAssets={Array.from(getAssets())}
|
sharedAssets={Array.from(getAssets())}
|
||||||
shareType={SharedLinkType.Individual}
|
shareType={SharedLinkType.Individual}
|
||||||
on:close={() => {
|
on:close={() => (showModal = false)}
|
||||||
showModal = false;
|
|
||||||
clearSelect();
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user