From d236134434094ef8a725014540ccf0b7e82234cd Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Wed, 11 Nov 2026 15:14:42 +0100 Subject: [PATCH] Fixed missing default RPC timeout in widget action settings (#16621) --- .../action/get-value-action-settings-panel.component.html | 4 ++-- .../action/get-value-action-settings-panel.component.ts | 4 ++-- .../action/set-value-action-settings-panel.component.html | 4 ++-- .../action/set-value-action-settings-panel.component.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html index 2cd8413e32..3560e331cd 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html @@ -207,7 +207,7 @@
-
{{ 'widgets.value-action.request-timeout-ms' | translate }}
+
{{ 'widgets.value-action.request-timeout-ms' | translate }}
@if (getValueSettingsFormGroup.get('executeRpc').get('requestTimeout').touched && @@ -236,7 +236,7 @@
-
{{ 'widgets.value-action.persistent-polling-interval' | translate }}
+
{{ 'widgets.value-action.persistent-polling-interval' | translate }}
@if (getValueSettingsFormGroup.get('executeRpc').get('persistentPollingInterval').touched && diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.ts index b6cda40331..a7f483683f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.ts @@ -110,10 +110,10 @@ export class GetValueActionSettingsPanelComponent extends PageComponent implemen defaultValue: [this.getValueSettings?.defaultValue, [Validators.required]], executeRpc: this.fb.group({ method: [this.getValueSettings?.executeRpc?.method, [Validators.required]], - requestTimeout: [this.getValueSettings?.executeRpc?.requestTimeout, [Validators.required, Validators.min(5000)]], + requestTimeout: [this.getValueSettings?.executeRpc?.requestTimeout ?? 5000, [Validators.required, Validators.min(5000)]], requestPersistent: [this.getValueSettings?.executeRpc?.requestPersistent, []], persistentPollingInterval: - [this.getValueSettings?.executeRpc?.persistentPollingInterval, [Validators.required, Validators.min(1000)]], + [this.getValueSettings?.executeRpc?.persistentPollingInterval ?? 1000, [Validators.required, Validators.min(1000)]], params: this.fb.group({ type: [this.getValueSettings?.executeRpc?.params?.type ?? RpcParamsType.NONE, [Validators.required]], constantValue: [this.getValueSettings?.executeRpc?.params?.constantValue, [Validators.required]], diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html index 4d37d94c7f..e5963def57 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html @@ -139,7 +139,7 @@
-
{{ 'widgets.value-action.request-timeout-ms' | translate }}
+
{{ 'widgets.value-action.request-timeout-ms' | translate }}
@if (setValueSettingsFormGroup.get('executeRpc').get('requestTimeout').touched && @@ -168,7 +168,7 @@
-
{{ 'widgets.value-action.persistent-polling-interval' | translate }}
+
{{ 'widgets.value-action.persistent-polling-interval' | translate }}
@if (setValueSettingsFormGroup.get('executeRpc').get('persistentPollingInterval').touched && diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.ts index 25091cb3bd..759256c772 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.ts @@ -89,10 +89,10 @@ export class SetValueActionSettingsPanelComponent extends PageComponent implemen action: [this.setValueSettings?.action, []], executeRpc: this.fb.group({ method: [this.setValueSettings?.executeRpc?.method, [Validators.required]], - requestTimeout: [this.setValueSettings?.executeRpc?.requestTimeout, [Validators.required, Validators.min(5000)]], + requestTimeout: [this.setValueSettings?.executeRpc?.requestTimeout ?? 5000, [Validators.required, Validators.min(5000)]], requestPersistent: [this.setValueSettings?.executeRpc?.requestPersistent, []], persistentPollingInterval: - [this.setValueSettings?.executeRpc?.persistentPollingInterval, [Validators.required, Validators.min(1000)]] + [this.setValueSettings?.executeRpc?.persistentPollingInterval ?? 1000, [Validators.required, Validators.min(1000)]] }), setAttribute: this.fb.group({ scope: [this.setValueSettings?.setAttribute?.scope, []],