Skip to content

Commit

Permalink
Fix resources tooltip grammar; code refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
  • Loading branch information
torchiaf committed Jan 21, 2025
1 parent 2bf1365 commit 2e67927
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions shell/assets/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions shell/assets/translations/zh-hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions shell/edit/fleet.cattle.io.gitrepo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ export default {
<div class="resource-handling">
<Checkbox
v-model:value="value.spec.correctDrift.enabled"
:tooltip="t('fleet.gitRepo.resources.correctDriftBanner')"
:tooltip="t('fleet.gitRepo.resources.correctDriftTooltip')"
data-testid="GitRepo-correctDrift-checkbox"
class="check"
type="checkbox"
Expand All @@ -648,7 +648,7 @@ export default {
/>
<Checkbox
v-model:value="value.spec.keepResources"
:tooltip="t('fleet.gitRepo.resources.keepResourcesBanner')"
:tooltip="t('fleet.gitRepo.resources.keepResourcesTooltip')"
data-testid="GitRepo-keepResources-checkbox"
class="check"
type="checkbox"
Expand Down

0 comments on commit 2e67927

Please sign in to comment.