From cce758cc0fceb5a42893381d9e2030d7cdf6b95a Mon Sep 17 00:00:00 2001 From: Naman Munet Date: Mon, 22 Jul 2024 15:22:55 +0530 Subject: [PATCH] Fixes: https://tracker.ceph.com/issues/67074 Signed-off-by: Naman Munet (cherry picked from commit 6241be164dc1f764b66bf63ca4e42a4f3931c07a) --- .../ceph/cluster/create-cluster/create-cluster.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts index 25d8717513064..bd6f768c236a8 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts @@ -31,6 +31,7 @@ import { NotificationService } from '~/app/shared/services/notification.service' import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service'; import { WizardStepsService } from '~/app/shared/services/wizard-steps.service'; import { DriveGroup } from '../osd/osd-form/drive-group.model'; +import { Location } from '@angular/common'; @Component({ selector: 'cd-create-cluster', @@ -69,7 +70,8 @@ export class CreateClusterComponent implements OnInit, OnDestroy { private modalService: ModalService, private taskWrapper: TaskWrapperService, private osdService: OsdService, - private route: ActivatedRoute + private route: ActivatedRoute, + private location: Location ) { this.permissions = this.authStorageService.getPermissions(); this.currentStepSub = this.wizardStepsService @@ -229,7 +231,7 @@ export class CreateClusterComponent implements OnInit, OnDestroy { if (!this.wizardStepsService.isFirstStep()) { this.wizardStepsService.moveToPreviousStep(); } else { - this.router.navigate(['/dashboard']); + this.location.back(); } } -- 2.39.5