From 2e679275ad97092d2bcab3b02bb0e3d9b5db4547 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Mon, 20 Jan 2025 18:32:08 +0100 Subject: [PATCH] Fix resources tooltip grammar; code refactoring Signed-off-by: Francesco Torchia --- shell/assets/translations/en-us.yaml | 4 ++-- shell/assets/translations/zh-hans.yaml | 4 ++-- shell/edit/fleet.cattle.io.gitrepo.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/assets/translations/en-us.yaml b/shell/assets/translations/en-us.yaml index d64d683f23e..7d732c147e5 100644 --- a/shell/assets/translations/en-us.yaml +++ b/shell/assets/translations/en-us.yaml @@ -2437,9 +2437,9 @@ fleet: resources: label: 'Resource Handling' keepResources: Always Keep Resources - keepResourcesBanner: When enabled above, resources will be kept when deleting a GitRepo or Bundle - only Helm release secrets will be deleted. + keepResourcesTooltip: When enabled, resources will be kept when deleting a GitRepo or Bundle - only Helm release secrets will be deleted. correctDrift: Enable Self-Healing - correctDriftBanner: When enabled, Fleet will ensure that the cluster resources are kept in sync with the git repository. All resource changes made on the cluster will be lost. + correctDriftTooltip: When enabled, Fleet will ensure that the cluster resources are kept in sync with the git repository. All resource changes made on the cluster will be lost. add: steps: repoInfo: diff --git a/shell/assets/translations/zh-hans.yaml b/shell/assets/translations/zh-hans.yaml index df55c517617..db1b30138de 100644 --- a/shell/assets/translations/zh-hans.yaml +++ b/shell/assets/translations/zh-hans.yaml @@ -2156,9 +2156,9 @@ fleet: resources: label: '资源处理' keepResources: 永远保留资源 - keepResourcesBanner: 启用时,删除 GitRepo 或 Bundle 后将保留资源,只会删除 Helm Release Secret。 + keepResourcesTooltip: 启用时,删除 GitRepo 或 Bundle 后将保留资源,只会删除 Helm Release Secret。 correctDrift: 启用自我修复 - correctDriftBanner: 启用后,Fleet 将确保集群资源与 Git 仓库保持同步。在 ecluster 上进行的所有资源更改都将丢失。 + correctDriftTooltip: 启用后,Fleet 将确保集群资源与 Git 仓库保持同步。在 ecluster 上进行的所有资源更改都将丢失。 add: steps: repoInfo: diff --git a/shell/edit/fleet.cattle.io.gitrepo.vue b/shell/edit/fleet.cattle.io.gitrepo.vue index b12a2a193b4..2f7cae5edde 100644 --- a/shell/edit/fleet.cattle.io.gitrepo.vue +++ b/shell/edit/fleet.cattle.io.gitrepo.vue @@ -639,7 +639,7 @@ export default {