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); + } } }