mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(web): Add select all button to all views (#2714)
* Add select all to photos
* Add selection of favorites
* Add select all button to albums
* Add select all to archive
* Add select all to search
* try to fix identation
* Revert "try to fix identation"
This reverts commit 40c727b74a.
* try to fix identation
* try to fix identation
* try to fix identation
* try to fix identation
* fix bucketposition
* Run prettier
---------
Co-authored-by: Yonggan <yonggan@obco.pro>
This commit is contained in:
parent
73075c64d1
commit
9a80a2151c
7 changed files with 74 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
import CreateSharedLinkModal from '../shared-components/create-share-link-modal/create-shared-link-modal.svelte';
|
||||
import GalleryViewer from '../shared-components/gallery-viewer/gallery-viewer.svelte';
|
||||
import ImmichLogo from '../shared-components/immich-logo.svelte';
|
||||
import SelectAll from 'svelte-material-icons/SelectAll.svelte';
|
||||
import {
|
||||
NotificationType,
|
||||
notificationController
|
||||
|
|
@ -332,6 +333,10 @@
|
|||
isShowShareUserSelection = false;
|
||||
isShowShareLinkModal = true;
|
||||
};
|
||||
|
||||
const handleSelectAll = () => {
|
||||
multiSelectAsset = new Set(album.assets);
|
||||
};
|
||||
</script>
|
||||
|
||||
<section class="bg-immich-bg dark:bg-immich-dark-bg" class:hidden={isShowThumbnailSelection}>
|
||||
|
|
@ -341,6 +346,7 @@
|
|||
assets={multiSelectAsset}
|
||||
clearSelect={() => (multiSelectAsset = new Set())}
|
||||
>
|
||||
<CircleIconButton title="Select all" logo={SelectAll} on:click={handleSelectAll} />
|
||||
<DownloadAction filename={album.albumName} sharedLinkKey={sharedLink?.key} />
|
||||
{#if isOwned}
|
||||
<RemoveFromAlbum bind:album />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue