1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

fix(web): disable bulk action buttons while items selected (#9938)

fix(web):disabled bulk action buttons while items selected
This commit is contained in:
Jacob Watson 2024-06-02 22:11:45 +10:00 committed by GitHub
parent 203cbbbfdb
commit 5af67d159f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,13 +97,13 @@
{#if $featureFlags.loaded && $featureFlags.trash}
<UserPageLayout hideNavbar={$isMultiSelectState} title={data.meta.title} scrollbar={false}>
<div class="flex place-items-center gap-2" slot="buttons">
<LinkButton on:click={handleRestoreTrash}>
<LinkButton on:click={handleRestoreTrash} disabled={$isMultiSelectState}>
<div class="flex place-items-center gap-2 text-sm">
<Icon path={mdiHistory} size="18" />
Restore all
</div>
</LinkButton>
<LinkButton on:click={() => handleEmptyTrash()}>
<LinkButton on:click={() => handleEmptyTrash()} disabled={$isMultiSelectState}>
<div class="flex place-items-center gap-2 text-sm">
<Icon path={mdiDeleteOutline} size="18" />
Empty trash