Browse Source

Fix for version control restore 'delete other entities' popover

pull/9126/head
rusikv 3 years ago
parent
commit
0d42741e3a
  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