From 053b7a138ef405c6094efabfe0db0be8dd041b67 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Sun, 4 Oct 2020 01:21:29 -0700 Subject: [PATCH] Fleet fixes (#1612) --- assets/translations/en-us.yaml | 12 +++---- components/ActionMenu.vue | 2 +- components/AssignTo.vue | 35 +++++++++++-------- components/Card.vue | 2 +- components/FleetClusters.vue | 2 ++ components/SortableTable/index.vue | 2 +- components/form/KeyValue.vue | 2 +- config/labels-annotations.js | 5 ++- detail/fleet.cattle.io.clustergroup.vue | 1 - .../management.cattle.io.fleetworkspace.vue | 2 +- edit/fleet.cattle.io.clustergroup.vue | 6 ++-- list/fleet.cattle.io.clustergroup.vue | 20 ++++------- models/fleet.cattle.io.cluster.js | 4 +-- models/fleet.cattle.io.clustergroup.js | 2 +- models/fleet.cattle.io.gitrepo.js | 27 ++++++++------ 15 files changed, 66 insertions(+), 58 deletions(-) diff --git a/assets/translations/en-us.yaml b/assets/translations/en-us.yaml index 80449ec3151..4b8c85838bf 100644 --- a/assets/translations/en-us.yaml +++ b/assets/translations/en-us.yaml @@ -82,13 +82,13 @@ suffix: assignTo: title: |- {count, plural, - =1 { Assign Cluster To... } - other { Assign {count} Clusters To... } + =1 { Assign Cluster To… } + other { Assign {count} Clusters To… } } labelsTitle: |- {count, plural, - =1 { Assign Cluster To... } - other { Assign {count} Clusters To... } + =1 { Assign Cluster To… } + other { Assign {count} Clusters To… } } asyncButton: @@ -450,8 +450,8 @@ fleet: label: Deploy To targetDisplay: advanced: Advanced - cluster: "Cluster: {name}" - clusterGroup: "Group: {name}" + cluster: "Cluster" + clusterGroup: "Group" all: All local: Local workspace: diff --git a/components/ActionMenu.vue b/components/ActionMenu.vue index 2c72410bdaf..1b9c643e313 100644 --- a/components/ActionMenu.vue +++ b/components/ActionMenu.vue @@ -92,7 +92,7 @@ export default { diff --git a/components/AssignTo.vue b/components/AssignTo.vue index bb284e4e41a..634689b4a58 100644 --- a/components/AssignTo.vue +++ b/components/AssignTo.vue @@ -115,23 +115,28 @@ export default { :scrollable="true" > -

- {{ t('assignTo.title', {count: resourceCount}) }} -

+

- - - - - +
+ + + + + +
diff --git a/components/Card.vue b/components/Card.vue index dd6982b30e1..35d3f65ae49 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -49,7 +49,7 @@ export default { background: var(--nav-bg); display: grid; & .card-body { - overflow: hidden; + overflow: auto; padding: 20px; } & .card-actions { diff --git a/components/FleetClusters.vue b/components/FleetClusters.vue index 63d41a39001..02d47cea0b4 100644 --- a/components/FleetClusters.vue +++ b/components/FleetClusters.vue @@ -33,6 +33,7 @@ export default { value: 'status.display.readyBundles', sort: 'status.summary.ready', search: false, + align: 'center', }, { name: 'reposReady', @@ -40,6 +41,7 @@ export default { value: 'status.display.readyBundles', sort: 'status.summary.ready', search: false, + align: 'center', }, FLEET_SUMMARY, { diff --git a/components/SortableTable/index.vue b/components/SortableTable/index.vue index 1844a90826e..fa0c8948ae7 100644 --- a/components/SortableTable/index.vue +++ b/components/SortableTable/index.vue @@ -464,7 +464,7 @@ export default { @mouseleave="setBulkActionOfInterest(null)" > - {{ act.label }} +