Fleet fix target clusters labels

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia 2025-06-19 09:53:08 +02:00
parent d95f64064f
commit 29ef1ba8d2
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
4 changed files with 10 additions and 4 deletions

View File

@ -2591,6 +2591,11 @@ fleet:
title: Selected clusters
placeholder: Select clusters by name or labels
empty: No clusters in the workspace
plusMore: |-
{n, plural,
=1 {+ 1 more cluster}
other {+ {n, number} more clusters}
}
application:
pageTitle: App Bundles
menuLabel: App Bundles
@ -2725,7 +2730,7 @@ fleet:
additionalOptions: Additional settings
targetDisplay:
advanced: Advanced
clusters: "Clusters"
clusters: Clusters
all: All
none: None
local: Local
@ -2857,7 +2862,7 @@ fleet:
additionalOptions: Additional Options
targetDisplay:
advanced: Advanced
clusters: "Clusters"
clusters: Clusters
all: All
none: None
local: Local

View File

@ -26,7 +26,7 @@ export default {
if (remaining > 0) {
return [
...names.filter((_, i) => i < max),
`... and ${ remaining } other clusters`
this.t('fleet.clusterTargets.rules.matching.plusMore', { n: remaining }, true),
];
}

View File

@ -210,6 +210,7 @@ export default {
clusterGroupSelector,
} = target;
// If clusterGroup or clusterGroupSelector are defined, targets are marked as complex and won't handle by the UI
if (clusterGroup || clusterGroupSelector) {
return;
}

View File

@ -414,7 +414,7 @@ export default {
type="button"
class="btn role-tertiary add"
:class="[addClass]"
:data-testid="`input-match-expression-add-rule`"
data-testid="input-match-expression-add-rule"
@click="addRule"
>
<i