From d06bac8bf2f8fba84ddbf36a5cc11f8261a9b575 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 24 Dec 2024 11:46:06 +0200 Subject: [PATCH 1/2] UI: Fixed not detect delete js module --- ui-ngx/src/app/shared/components/js-func-modules.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/shared/components/js-func-modules.component.ts b/ui-ngx/src/app/shared/components/js-func-modules.component.ts index 6269ffc596..84970ff081 100644 --- a/ui-ngx/src/app/shared/components/js-func-modules.component.ts +++ b/ui-ngx/src/app/shared/components/js-func-modules.component.ts @@ -119,6 +119,7 @@ export class JsFuncModulesComponent implements OnInit { removeModule(index: number, emitEvent = true) { (this.modulesFormGroup.get('modules') as UntypedFormArray).removeAt(index, {emitEvent}); + this.modulesFormGroup.get('modules').markAsDirty({emitEvent}); } addModule() { From 8a53140b3fbb7d0faef0f68f14b535f14148c085 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 24 Dec 2024 11:47:05 +0200 Subject: [PATCH 2/2] UI: Fixed validation alias name for js module --- .../components/js-func-module-row.component.html | 8 ++++++++ .../components/js-func-module-row.component.ts | 12 +++++++++--- ui-ngx/src/assets/locale/locale.constant-en_US.json | 1 + 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/shared/components/js-func-module-row.component.html b/ui-ngx/src/app/shared/components/js-func-module-row.component.html index 38456fbda4..7c1650ccbf 100644 --- a/ui-ngx/src/app/shared/components/js-func-module-row.component.html +++ b/ui-ngx/src/app/shared/components/js-func-module-row.component.html @@ -18,6 +18,14 @@
+ + warning +