From: Volker Theile Date: Fri, 31 Aug 2018 16:49:45 +0000 (+0200) Subject: mgr/dashboard: Display RGW user/bucket quota max size in human readable form X-Git-Tag: v14.0.1~419^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23842%2Fhead;p=ceph.git mgr/dashboard: Display RGW user/bucket quota max size in human readable form Fixes: https://tracker.ceph.com/issues/34315 Signed-off-by: Volker Theile --- 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 943a4d96ff3b..45b4f0ae61f7 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 @@ -476,7 +476,8 @@ + formControlName="user_quota_max_size" + cdDimlessBinary> @@ -579,7 +580,8 @@ + formControlName="bucket_quota_max_size" + cdDimlessBinary> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts index 8623351791de..422a65d148fa 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts @@ -177,7 +177,7 @@ export class RgwUserFormComponent implements OnInit { value[type + '_quota_max_size'] = null; } else { value[type + '_quota_max_size_unlimited'] = false; - value[type + '_quota_max_size'] = quota.max_size; + value[type + '_quota_max_size'] = `${quota.max_size} B`; } if (quota.max_objects < 0) { value[type + '_quota_max_objects_unlimited'] = true;