From 93e34a7cb58e27f8c60c9b4b3927c2548aff907e Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Wed, 17 Sep 2025 16:40:48 +0530 Subject: [PATCH] mgr/dashboard: type the rbd mirror modes Fixes: https://tracker.ceph.com/issues/72458 Signed-off-by: Nizamudeen A --- .../src/app/ceph/block/rbd-contants.ts | 4 +- .../block/rbd-form/rbd-form.component.html | 14 +++---- .../ceph/block/rbd-form/rbd-form.component.ts | 37 ++++++++++++------- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-contants.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-contants.ts index abc78f7612dcb..e24ab43d6b5a1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-contants.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-contants.ts @@ -16,9 +16,9 @@ export const RBDActionHelpers = { export const RBDPoolMirrorModes = { pool: 'pool', image: 'image' -} +}; export const RBDMirroringModes = { journal: 'journal', snapshot: 'snapshot' -} +}; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html index 225c52510814a..999c129ad0658 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html @@ -98,7 +98,7 @@
- This field is required. You have to increase the size. + i18n>Size must be increased. Size must be a number or in a valid format. eg: 5 GiB @@ -131,8 +130,7 @@
@@ -144,7 +142,7 @@
Namespace @@ -155,8 +153,6 @@
+ *ngIf="rbdForm.getValue('mirroringMode') === rbdMirrorModes.snapshot && mirroring">