Skip to content

Commit c3d8e61

Browse files
authored
Merge pull request ceph#60072 from rhcs-dashboard/delete-popover
mgr/dashboard: Unable to delete realm via dashboard Reviewed-by: Afreen Misbah <[email protected]>
2 parents bb2a220 + 0ed14dc commit c3d8e61

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)