From 03df017f8e20fce11ec7c5bfd69edf419c97df48 Mon Sep 17 00:00:00 2001 From: cloudbehl Date: Wed, 9 Aug 2023 16:24:00 +0530 Subject: [PATCH] mgr/dashboard: RGW Details card cleanup Fixes: https://tracker.ceph.com/issues/62377 Signed-off-by: cloudbehl --- .../rgw-bucket-details.component.html | 94 ++++++------------- .../rgw-bucket-details.component.spec.ts | 1 + 2 files changed, 29 insertions(+), 66 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.html index 15b33e141229d..c947e4490625b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.html @@ -3,18 +3,18 @@ Name - {{ selection.bid }} + class="bold w-25">Versioning + {{ selection.versioning }} ID - {{ selection.id }} + class="bold">Encryption + {{ selection.encryption }} Owner - {{ selection.owner }} + class="bold">MFA Delete + {{ selection.mfa_delete }} Marker - {{ selection.marker }} - - - Maximum marker - {{ selection.max_marker }} - - - Version - {{ selection.ver }} - - - Master version - {{ selection.master_ver }} - - - Modification time + class="bold">Last modification time {{ selection.mtime | cdDate }} - - Zonegroup - {{ selection.zonegroup }} - - - Versioning - {{ selection.versioning }} - - - Encryption - {{ selection.encryption }} - - - MFA Delete - {{ selection.mfa_delete }} - -
+
Bucket quota @@ -84,24 +44,26 @@ class="bold w-25">Enabled - - - - - - - - - - + + + + + + + + + + + +
{{ selection.bucket_quota.enabled | booleanText }}
Maximum sizeUnlimited - {{ selection.bucket_quota.max_size | dimless }} -
Maximum objectsUnlimited - {{ selection.bucket_quota.max_objects }} -
Maximum sizeUnlimited + {{ selection.bucket_quota.max_size | dimless }} +
Maximum objectsUnlimited + {{ selection.bucket_quota.max_objects }} +
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.spec.ts index ca6e09f0cec72..59f62952a5075 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.spec.ts @@ -27,6 +27,7 @@ describe('RgwBucketDetailsComponent', () => { fixture = TestBed.createComponent(RgwBucketDetailsComponent); component = fixture.componentInstance; component.selection = new CdTableSelection(); + component.selection = { bid: 'bucket', bucket_quota: { enabled: false, max_size: 0 } }; fixture.detectChanges(); }); -- 2.39.5