From 93cd12024a9c6814f21d37e50728afffd1ba6047 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Fri, 19 May 2023 16:48:14 +0530 Subject: [PATCH] mgr/dashboard: fix create snapshot is disabled for rbd images also the rename and rollback option in the snapshot list is enabled even if there isn't anything in the list also disabled the Mirror Image Snapshot option in the Create RBD Snapshot form (only shown for images configured with Snapshot mirroring) with the helpe Fixes: https://tracker.ceph.com/issues/61296 Signed-off-by: Nizamudeen A (cherry picked from commit 896ae75901b564677ea1611a89f4d61da881a6e1) --- .../rbd-snapshot-form-modal.component.html | 12 ++++++--- .../rbd-snapshot-form-modal.component.spec.ts | 22 ++++++++++++++++ .../rbd-snapshot-form-modal.component.ts | 26 ++++++++++++------- .../rbd-snapshot-actions.model.ts | 6 +++-- .../rbd-snapshot-list.component.spec.ts | 7 ++--- .../rbd-snapshot-list.component.ts | 12 --------- 6 files changed, 53 insertions(+), 32 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-modal.component.html index fb246a44451..e84ecab695a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-modal.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-modal.component.html @@ -24,13 +24,14 @@ autofocus> This field is required.

+ i18n>This field is required. Snapshot mode is enabled on image {{ imageName }}: snapshot names are auto generated -
-
+ +
+ The peer must be registered to do this action.
-
+