From 9a883dcd6b83fd97619007854c4a92f187260a3d Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Mon, 20 May 2019 11:03:23 +0200 Subject: [PATCH] mgr/dashboard: Fix RGW user/bucket quota issues * RGW user/bucket "max. size" should be hidden when "user/bucket quota" is not enabled * Only execute validators if necessary Fixes: https://tracker.ceph.com/issues/39964 Signed-off-by: Volker Theile --- .../rgw-user-form.component.html | 8 +-- .../rgw-user-form/rgw-user-form.component.ts | 24 +++++---- .../app/shared/forms/cd-validators.spec.ts | 51 +++++++++++++++++++ .../src/app/shared/forms/cd-validators.ts | 43 +++++++++++++++- 4 files changed, 111 insertions(+), 15 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html index c41346c6bb064..12dd06c55941a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html @@ -433,7 +433,7 @@
+ *ngIf="userForm.controls.user_quota_enabled.value && !userForm.getValue('user_quota_max_size_unlimited')">