Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
fix erroneous route transitions
Dieser Commit ist enthalten in:
Ursprung
a786b5956b
Commit
766d3b5fc9
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
|
@ -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");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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")
|
||||||
);
|
);
|
||||||
|
|
Laden …
In neuem Issue referenzieren