Browse Source

Merge pull request #9126 from rusikv/bug/version-control-remove-other-entities-popover

Fix for 'remove other entities' popover in version control
pull/8767/head
Igor Kulikov 3 years ago
committed by GitHub
parent
commit
e83aebead8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/modules/home/components/vc/entity-types-version-load.component.ts

2
ui-ngx/src/app/modules/home/components/vc/entity-types-version-load.component.ts

@ -218,7 +218,7 @@ export class EntityTypesVersionLoadComponent extends PageComponent implements On
onRemoveOtherEntities(removeOtherEntitiesCheckbox: MatCheckbox, entityTypeControl: AbstractControl) {
const removeOtherEntities: boolean = entityTypeControl.get('config.removeOtherEntities').value;
if (removeOtherEntities) {
entityTypeControl.get('config').get('removeOtherEntities').patchValue(false, {emitEvent: false});
entityTypeControl.get('config').get('removeOtherEntities').patchValue(false, {emitEvent: true});
const trigger = $('.mdc-checkbox__background', removeOtherEntitiesCheckbox._elementRef.nativeElement)[0];
if (this.popoverService.hasPopover(trigger)) {
this.popoverService.hidePopover(trigger);

Loading…
Cancel
Save