From dfac02b14eb13a42028202578499e4289b2875ec Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Mon, 2 Jun 2025 18:58:34 +0300 Subject: [PATCH] UI: Add allow created/view relation to rule chain --- .../relation/relation-dialog.component.html | 1 + .../relation/relation-dialog.component.ts | 23 ++++++++++++++----- .../entity/entity-list-select.component.html | 1 + .../entity/entity-list-select.component.ts | 3 +++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html b/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html index 91a0357947..da0a5c742c 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html @@ -38,6 +38,7 @@ 'relation.to-entity' : 'relation.from-entity') | translate}} implements OnInit, ErrorStateMatcher { - relationFormGroup: UntypedFormGroup; + relationFormGroup: FormGroup; + + additionEntityTypes: {[key in string]: string} = {}; isAdd: boolean; direction: EntitySearchDirection; entitySearchDirection = EntitySearchDirection; - additionalInfo: UntypedFormControl; + additionalInfo: FormControl; @ViewChild('additionalInfoEdit', {static: true}) additionalInfoEdit: JsonObjectEditComponent; submitted = false; + private authUser = getCurrentAuthUser(this.store); + constructor(protected store: Store, protected router: Router, @Inject(MAT_DIALOG_DATA) public data: RelationDialogData, private entityRelationService: EntityRelationService, @SkipSelf() private errorStateMatcher: ErrorStateMatcher, public dialogRef: MatDialogRef, - public fb: UntypedFormBuilder, + public fb: FormBuilder, private destroyRef: DestroyRef) { super(store, router, dialogRef); this.isAdd = data.isAdd; @@ -74,13 +81,17 @@ export class RelationDialogComponent extends DialogComponent