Skip to content

Commit 83890f9

Browse files
authored
Merge pull request ceph#62757 from rhcs-dashboard/fix-70866-main
mgr/dashboard: add description for default Pool Application select options Reviewed-by: Afreen Misbah <[email protected]> Reviewed-by: Ankush Behl <[email protected]> Reviewed-by: Pedro Gonzalez Gomez <[email protected]>
2 parents 99d9fb5 + 358fa05 commit 83890f9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export class PoolFormData {
99
crushInfo = false;
1010
applications: any;
1111

12+
readonly APP_LABELS: Record<string, string> = {
13+
cephfs: 'Filesystem',
14+
rbd: 'Block',
15+
rgw: 'Object'
16+
};
17+
1218
constructor() {
1319
this.poolTypes = ['erasure', 'replicated'];
1420
this.applications = {
@@ -26,7 +32,7 @@ export class PoolFormData {
2632
pattern: $localize`Allowed characters '_a-zA-Z0-9'`,
2733
maxlength: $localize`Maximum length is 128 characters`
2834
},
29-
filter: $localize`Filter or add applications'`,
35+
filter: $localize`Filter or add applications`,
3036
add: $localize`Add application`
3137
})
3238
};

src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export class PoolFormComponent extends CdForm implements OnInit {
301301

302302
private setAvailableApps(apps: string[] = this.data.applications.default) {
303303
this.data.applications.available = _.uniq(apps.sort()).map(
304-
(x: string) => new SelectOption(false, x, '')
304+
(x: string) => new SelectOption(false, x, this.data.APP_LABELS[x] || x)
305305
);
306306
}
307307

0 commit comments

Comments
 (0)