]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard : Fix application names in pools form
authorAbhishek Desai <abhishek.desai1@ibm.com>
Tue, 17 Mar 2026 08:33:21 +0000 (14:03 +0530)
committerAbhishek Desai <abhishek.desai1@ibm.com>
Mon, 20 Apr 2026 11:56:02 +0000 (17:26 +0530)
Signed-off-by: Abhishek Desai <abhishek.desai1@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.ts

index 4e7dd8b80925ddc4cd8cccfba723a43270d07184..ad5672aee44adbbdeeb2a2c66ea9a117d307af23 100644 (file)
@@ -10,9 +10,9 @@ export class PoolFormData {
   applications: any;
 
   readonly APP_LABELS: Record<string, string> = {
-    cephfs: 'Filesystem',
-    rbd: 'Block',
-    rgw: 'Object'
+    cephfs: $localize`Filesystem (CephFS)`,
+    rbd: $localize`Block (RBD)`,
+    rgw: $localize`Object (RGW)`
   };
 
   constructor() {
index f2e9df5a5efb7cc8f05513cd8eeb7329b94422a6..02515ad6d708bc2bc06705044b722bd51d3539a1 100644 (file)
@@ -367,7 +367,7 @@ export class PoolFormComponent extends CdForm implements OnInit {
     const selectedApps = this.data.applications.selected || [];
     this.data.applications.available = _.uniq(apps.sort()).map((x: string) => {
       const option = new SelectOption(selectedApps.includes(x), x, this.data.APP_LABELS?.[x] || x);
-      (option as any).content = x;
+      (option as any).content = this.data.APP_LABELS?.[x] || x;
       return option;
     });
   }
index d33a68e4603c6a910d83b2fa463b78fdccc5945e..5dc4c6643ad669dcbb967bfd085eeeb3778bc01c 100644 (file)
@@ -266,6 +266,11 @@ export class PoolListComponent extends ListWithDetails implements OnInit {
       'wr'
     ];
     const emptyStat: PoolStat = { latest: 0, rate: 0, rates: [] };
+    const applicationLabels: Record<string, string> = {
+      cephfs: $localize`filesystem`,
+      rbd: $localize`block`,
+      rgw: $localize`object`
+    };
 
     _.forEach(pools, (pool: Pool) => {
       pool['pg_status'] = this.transformPgStatus(pool['pg_status']);
@@ -295,6 +300,10 @@ export class PoolListComponent extends ListWithDetails implements OnInit {
       if (pool['type'] === 'replicated') {
         pool['data_protection'] = `replica: ×${pool['size']}`;
       }
+
+      pool['application_metadata'] = (pool.application_metadata || []).map(
+        (application: string) => applicationLabels[application] || application
+      );
     });
 
     return pools;