From: Abhishek Desai Date: Tue, 17 Mar 2026 08:33:21 +0000 (+0530) Subject: mgr/dashboard : Fix application names in pools form X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5c29aa59589d22077612f69230b2d83dd84ef30d;p=ceph.git mgr/dashboard : Fix application names in pools form Signed-off-by: Abhishek Desai --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts index 4e7dd8b80925..ad5672aee44a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts @@ -10,9 +10,9 @@ export class PoolFormData { applications: any; readonly APP_LABELS: Record = { - cephfs: 'Filesystem', - rbd: 'Block', - rgw: 'Object' + cephfs: $localize`Filesystem (CephFS)`, + rbd: $localize`Block (RBD)`, + rgw: $localize`Object (RGW)` }; constructor() { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts index f2e9df5a5efb..02515ad6d708 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts @@ -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; }); } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.ts index d33a68e4603c..5dc4c6643ad6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.ts @@ -266,6 +266,11 @@ export class PoolListComponent extends ListWithDetails implements OnInit { 'wr' ]; const emptyStat: PoolStat = { latest: 0, rate: 0, rates: [] }; + const applicationLabels: Record = { + 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;