Browse Source
Merge pull request #13804 from vvlladd28/bug/reletion-querry/edit-not
Fix alias relations query bug preventing 'Not' filter from being edited after creation
pull/13809/head
Igor Kulikov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/relation/relation-filters.component.ts
|
|
@ -128,7 +128,7 @@ export class RelationFiltersComponent extends PageComponent implements ControlVa |
|
|
entityTypes: [filter ? filter.entityTypes : []] |
|
|
entityTypes: [filter ? filter.entityTypes : []] |
|
|
}); |
|
|
}); |
|
|
if (this.enableNotOption) { |
|
|
if (this.enableNotOption) { |
|
|
formGroup.addControl('negate', this.fb.control({value: filter ? filter.negate : false, disabled: true})); |
|
|
formGroup.addControl('negate', this.fb.control({value: filter?.negate ?? false, disabled: !filter?.relationType})); |
|
|
formGroup.get('relationType').valueChanges.pipe( |
|
|
formGroup.get('relationType').valueChanges.pipe( |
|
|
takeUntil(this.destroy$) |
|
|
takeUntil(this.destroy$) |
|
|
).subscribe(value => { |
|
|
).subscribe(value => { |
|
|
|