Skip to content

Commit 91a4dd0

Browse files
authored
Merge pull request ceph#58716 from rhcs-dashboard/expand-cluster-back-btn-fix
mgr/dashboard: expand-cluster back navigation fix
2 parents ad880f6 + 6241be1 commit 91a4dd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { NotificationService } from '~/app/shared/services/notification.service'
3131
import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';
3232
import { WizardStepsService } from '~/app/shared/services/wizard-steps.service';
3333
import { DriveGroup } from '../osd/osd-form/drive-group.model';
34+
import { Location } from '@angular/common';
3435

3536
@Component({
3637
selector: 'cd-create-cluster',
@@ -69,7 +70,8 @@ export class CreateClusterComponent implements OnInit, OnDestroy {
6970
private modalService: ModalService,
7071
private taskWrapper: TaskWrapperService,
7172
private osdService: OsdService,
72-
private route: ActivatedRoute
73+
private route: ActivatedRoute,
74+
private location: Location
7375
) {
7476
this.permissions = this.authStorageService.getPermissions();
7577
this.currentStepSub = this.wizardStepsService
@@ -229,7 +231,7 @@ export class CreateClusterComponent implements OnInit, OnDestroy {
229231
if (!this.wizardStepsService.isFirstStep()) {
230232
this.wizardStepsService.moveToPreviousStep();
231233
} else {
232-
this.router.navigate(['/dashboard']);
234+
this.location.back();
233235
}
234236
}
235237

0 commit comments

Comments
 (0)