From c065705608f7f3ee54d648ca84cbb79f2cf2c726 Mon Sep 17 00:00:00 2001 From: faupau Date: Thu, 29 Jun 2023 17:11:37 +0200 Subject: [PATCH] fix(web): Share link multi-select download icon showing when not available #3006 (#3027) * only show download button if allowDownload add SelectAll to individual share * fix allow download if not share --- web/src/lib/components/album-page/album-viewer.svelte | 4 +++- .../share-page/individual-shared-viewer.svelte | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte index 2223fcbd2e..4d327d322b 100644 --- a/web/src/lib/components/album-page/album-viewer.svelte +++ b/web/src/lib/components/album-page/album-viewer.svelte @@ -351,7 +351,9 @@ clearSelect={() => (multiSelectAsset = new Set())} > - + {#if sharedLink?.allowDownload || !isPublicShared} + + {/if} {#if isOwned} {/if} diff --git a/web/src/lib/components/share-page/individual-shared-viewer.svelte b/web/src/lib/components/share-page/individual-shared-viewer.svelte index 8657475842..a6a50f091a 100644 --- a/web/src/lib/components/share-page/individual-shared-viewer.svelte +++ b/web/src/lib/components/share-page/individual-shared-viewer.svelte @@ -12,6 +12,7 @@ import AssetSelectControlBar from '../photos-page/asset-select-control-bar.svelte'; import ControlAppBar from '../shared-components/control-app-bar.svelte'; import GalleryViewer from '../shared-components/gallery-viewer/gallery-viewer.svelte'; + import SelectAll from 'svelte-material-icons/SelectAll.svelte'; import ImmichLogo from '../shared-components/immich-logo.svelte'; import { notificationController, @@ -53,12 +54,19 @@ handleError(e, 'Unable to add assets to shared link'); } }; + + const handleSelectAll = () => { + selectedAssets = new Set(assets); + };
{#if isMultiSelectionMode} (selectedAssets = new Set())}> - + + {#if sharedLink?.allowDownload} + + {/if} {#if isOwned} {/if}