From 5307b55353aa54522b8b5d8de3ede30c67162e26 Mon Sep 17 00:00:00 2001 From: Tatjana Dehler Date: Tue, 29 Jan 2019 16:18:45 +0100 Subject: [PATCH] mgr/dashboard: Group buttons together into one button menu Group the two buttons 'Set Cluster-wide Flags' and 'Set Cluster-wide Recovery Priority' together into one button menu. Fixes: http://tracker.ceph.com/issues/37380 Signed-off-by: Tatjana Dehler --- .../osd/osd-list/osd-list.component.html | 46 ++++++++++++------- .../osd/osd-list/osd-list.component.scss | 3 ++ .../frontend/src/locale/messages.xlf | 12 ++--- .../mgr/dashboard/frontend/src/styles.scss | 3 ++ 4 files changed, 41 insertions(+), 23 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html index dadc21beeddb..86f9afacba79 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html @@ -14,23 +14,35 @@ [tableActions]="tableActions"> - - - +
+ + + +
app/ceph/cluster/osd/osd-list/osd-list.component.html - 59 + 71 app/ceph/pool/pool-list/pool-list.component.html @@ -1062,13 +1062,13 @@ Set Cluster-wide Flags app/ceph/cluster/osd/osd-list/osd-list.component.html - 23 + 25 Set Cluster-wide Recovery Priority app/ceph/cluster/osd/osd-list/osd-list.component.html - 32 + 41 OSDs List @@ -1081,20 +1081,20 @@ if you proceed. app/ceph/cluster/osd/osd-list/osd-list.component.html - 69 + 81 The OSD is not safe to destroy! app/ceph/cluster/osd/osd-list/osd-list.component.html - 78 + 90 OSD will be if you proceed. app/ceph/cluster/osd/osd-list/osd-list.component.html - 80 + 92 Health diff --git a/src/pybind/mgr/dashboard/frontend/src/styles.scss b/src/pybind/mgr/dashboard/frontend/src/styles.scss index 6e3f1bdab089..1e2a69ff0bb1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/styles.scss +++ b/src/pybind/mgr/dashboard/frontend/src/styles.scss @@ -155,6 +155,9 @@ button.btn.btn-label > i.fa { /** Add space between icon and text */ padding-right: 5px; } +.btn-toolbar .btn-group { + float: none; +} /* Dropdown */ .dropdown-menu { -- 2.47.3