mirror of https://github.com/rancher/dashboard.git
Fleet fix target clusters labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
parent
d95f64064f
commit
29ef1ba8d2
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue