1
0
Fork 0

fix erroneous route transitions

Dieser Commit ist enthalten in:
merefield 2023-09-14 20:02:02 +01:00
Ursprung a786b5956b
Commit 766d3b5fc9
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -251,7 +251,7 @@ export default Controller.extend({
.catch(popupAjaxError) .catch(popupAjaxError)
.then((result) => { .then((result) => {
if (result.success) { if (result.success) {
this.router.transitionToRoute("adminWizardsApis").then(() => { this.router.transitionTo("adminWizardsApis").then(() => {
this.send("refreshModel"); this.send("refreshModel");
}); });
} }

Datei anzeigen

@ -17,12 +17,13 @@ export default Controller.extend({
const wizardId = this.get("wizard.id"); const wizardId = this.get("wizard.id");
window.location.href = getUrl(`/w/${wizardId}/steps/${nextStepId}`); window.location.href = getUrl(`/w/${wizardId}/steps/${nextStepId}`);
} else { } else {
this.router.transitionToRoute("customWizardStep", nextStepId); debugger;
this.router.transitionTo("customWizardStep", nextStepId);
} }
}, },
goBack() { goBack() {
this.router.transitionToRoute( this.router.transitionTo(
"customWizardStep", "customWizardStep",
this.get("step.previous") this.get("step.previous")
); );