0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-28 00:59:18 -05:00

fix(web): Update asset count when deleting assets from person page (#15416)

Call updateAssetCount() after deleting assets.
This commit is contained in:
imakida 2025-01-17 16:51:38 -10:00 committed by GitHub
parent 097183b31d
commit f40fdce658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,6 +328,11 @@
}
};
const handleDeleteAssets = async (assetIds: string[]) => {
$assetStore.removeAssets(assetIds);
await updateAssetCount();
};
onDestroy(() => {
assetStore.destroy();
});
@ -404,7 +409,7 @@
{#if $preferences.tags.enabled && assetInteraction.isAllUserOwned}
<TagAction menuItem />
{/if}
<DeleteAssets menuItem onAssetDelete={(assetIds) => $assetStore.removeAssets(assetIds)} />
<DeleteAssets menuItem onAssetDelete={(assetIds) => handleDeleteAssets(assetIds)} />
</ButtonContextMenu>
</AssetSelectControlBar>
{:else}