Skip to content

Commit 0ed14dc

Browse files
author
Dnyaneshwari
committed
mgr/dashboard: Unable to delete realm via dashboard
Replacing Bootstrap Modal Service (ModalService) with Carbon Modal Service (ModalCdsService) Fixes: https://tracker.ceph.com/issues/68290 Signed-off-by: Dnyaneshwari talwekar <[email protected]>
1 parent 41f803a commit 0ed14dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-details/rgw-multisite-details.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,20 +546,20 @@ export class RgwMultisiteDetailsComponent implements OnDestroy, OnInit {
546546

547547
delete(node: TreeNode) {
548548
if (node.data.type === 'realm') {
549-
this.modalRef = this.modalService.show(CriticalConfirmationModalComponent, {
549+
const modalRef = this.cdsModalService.show(CriticalConfirmationModalComponent, {
550550
itemDescription: $localize`${node.data.type} ${node.data.name}`,
551551
itemNames: [`${node.data.name}`],
552552
submitAction: () => {
553553
this.rgwRealmService.delete(node.data.name).subscribe(
554554
() => {
555-
this.modalRef.close();
556555
this.notificationService.show(
557556
NotificationType.success,
558557
$localize`Realm: '${node.data.name}' deleted successfully`
559558
);
559+
this.cdsModalService.dismissAll();
560560
},
561561
() => {
562-
this.modalRef.componentInstance.stopLoadingSpinner();
562+
this.cdsModalService.stopLoadingSpinner(modalRef.deletionForm);
563563
}
564564
);
565565
}

0 commit comments

Comments
 (0)