1
0
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:
Jason Rasmussen 2023-08-03 10:11:02 -04:00 committed by GitHub
parent a405fba3bb
commit e4e049d040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}