From 7384e4ce270915a299e39d6af788ce32ba4de6b3 Mon Sep 17 00:00:00 2001 From: Tatjana Dehler Date: Wed, 3 Apr 2019 16:24:11 +0200 Subject: [PATCH] mgr/dashboard: Consider user permissions Consider user permissions when showing advanced table actions and hide all buttons requiring missing permissions from the user. Also consider user permissions when showing submit buttons. Signed-off-by: Tatjana Dehler (cherry picked from commit aa68aca006bc084e6300b55123b82d780e428405) --- .../osd-flags-modal.component.html | 3 +- .../osd-flags-modal.component.ts | 9 ++++- .../osd/osd-list/osd-list.component.html | 15 ++++---- .../osd/osd-list/osd-list.component.ts | 36 +++++++++++++++---- .../osd-pg-scrub-modal.component.html | 3 +- .../osd-pg-scrub-modal.component.ts | 5 +++ .../osd-recv-speed-modal.component.html | 3 +- .../osd-recv-speed-modal.component.ts | 6 ++++ 8 files changed, 61 insertions(+), 19 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html index 59e2388593fa7..13ed7dfea7796 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html @@ -29,7 +29,8 @@