Browse Source

UI: Fix selection in image gallery for system images.

pull/9796/head
Igor Kulikov 3 years ago
parent
commit
d08f0467df
  1. 4
      ui-ngx/src/app/shared/components/image/image-gallery.component.ts

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

Loading…
Cancel
Save