From f4b79ec56360f7ad2a08be46fb7764f5048689bf Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 13 Nov 2026 17:53:40 +0200 Subject: [PATCH] fix: AI action details name a white labeling reset, and JSON blocks labelled settings show a translated label --- .../modules/home/components/ai/ai-action-detail.models.ts | 5 ++++- ui-ngx/src/assets/locale/locale.constant-en_US.json | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.models.ts b/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.models.ts index c7100b042f..f41f4e6b06 100644 --- a/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.models.ts +++ b/ui-ngx/src/app/modules/home/components/ai/ai-action-detail.models.ts @@ -1172,7 +1172,10 @@ function describe(tool: string, values: Values, result: unknown, names: AiDetail case 'read_white_labeling': return {hood: text('read-white-labeling'), blocks: json('settings', result)}; case 'save_white_labeling': { - const {target, ...changes} = values; + const {target, reset, ...changes} = values; + if (reset) { + return {hood: text(target === 'LOGIN' ? 'reset-white-labeling-login' : 'reset-white-labeling'), blocks: []}; + } return {hood: text(target === 'LOGIN' ? 'save-white-labeling-login' : 'save-white-labeling'), blocks: [{type: 'facts', rows: facts(changes)}]}; } case 'read_ota': { diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index d1529df100..ddd311f64d 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -890,6 +890,8 @@ "read-white-labeling": "Read the white labeling", "save-white-labeling": "Changed the platform's white labeling", "save-white-labeling-login": "Changed the login page's white labeling", + "reset-white-labeling": "Reset the platform's white labeling to the defaults", + "reset-white-labeling-login": "Reset the login page's white labeling to the defaults", "save-ota-package": "Created the OTA package {{name}}", "assign-ota-package": "Assigned the OTA package", "clear-ota-package": "Cleared the OTA package", @@ -1592,6 +1594,7 @@ "details": "Details", "request": "Request", "result": "Result", + "settings": "Settings", "try-again": "Try again", "try-again-prompt": "Try that again" },