From d08f0467df9090aa2a336224dd012d1db226a88a Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 7 Dec 2023 16:42:47 +0200 Subject: [PATCH] UI: Fix selection in image gallery for system images. --- .../app/shared/components/image/image-gallery.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/components/image/image-gallery.component.ts b/ui-ngx/src/app/shared/components/image/image-gallery.component.ts index af223e8563..7d76c6bde8 100644 --- a/ui-ngx/src/app/shared/components/image/image-gallery.component.ts +++ b/ui-ngx/src/app/shared/components/image/image-gallery.component.ts @@ -612,7 +612,9 @@ export class ImageGalleryComponent extends PageComponent implements OnInit, OnDe if (this.selectionMode) { this.selectImage($event, image); } else { - this.dataSource.selection.toggle(image); + if (this.deleteEnabled(image)) { + this.dataSource.selection.toggle(image); + } } }