From: Nizamudeen A Date: Wed, 17 Sep 2025 11:10:48 +0000 (+0530) Subject: mgr/dashboard: type the rbd mirror modes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=93e34a7cb58e27f8c60c9b4b3927c2548aff907e;p=ceph.git mgr/dashboard: type the rbd mirror modes Fixes: https://tracker.ceph.com/issues/72458 Signed-off-by: Nizamudeen A --- 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 abc78f7612dc..e24ab43d6b5a 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 225c52510814..999c129ad065 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">