From c7ea8ec7bf0bd782b053a87693cf0925da855eee Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 14 Nov 2023 01:02:32 -0800 Subject: [PATCH] share: disable link for locals Signed-off-by: Varun Patil --- src/components/modal/ShareModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modal/ShareModal.vue b/src/components/modal/ShareModal.vue index 51387bd3..a4d90388 100644 --- a/src/components/modal/ShareModal.vue +++ b/src/components/modal/ShareModal.vue @@ -137,7 +137,7 @@ export default defineComponent({ }, canShareLink(): boolean { - if (this.routeIsAlbums || !this.photos?.length) return false; + if (this.routeIsAlbums || !this.photos?.length || this.hasLocal) return false; // Check if all imageInfos are loaded (e.g. on viewer) // Then check if all images can be shared