From: Abhishek Desai Date: Tue, 17 Mar 2026 08:33:21 +0000 (+0530) Subject: mgr/dashboard : Fix application names in pools form X-Git-Tag: v20.2.2~36^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=237d940f825b1003f26711b6228e1cdd2120fb10;p=ceph.git mgr/dashboard : Fix application names in pools form Signed-off-by: Abhishek Desai (cherry picked from commit 5c29aa59589d22077612f69230b2d83dd84ef30d) --- 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 4e7dd8b8092..ad5672aee44 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 ae958732b8b..581ba12ff69 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 4277b9bc289..d1756c4cb8f 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 @@ -265,6 +265,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']); @@ -294,6 +299,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;