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

View File

@ -26,7 +26,7 @@ export default {
if (remaining > 0) { if (remaining > 0) {
return [ return [
...names.filter((_, i) => i < max), ...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, clusterGroupSelector,
} = target; } = target;
// If clusterGroup or clusterGroupSelector are defined, targets are marked as complex and won't handle by the UI
if (clusterGroup || clusterGroupSelector) { if (clusterGroup || clusterGroupSelector) {
return; return;
} }

View File

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