Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +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)
|
||||
.then((result) => {
|
||||
if (result.success) {
|
||||
this.router.transitionToRoute("adminWizardsApis").then(() => {
|
||||
this.router.transitionTo("adminWizardsApis").then(() => {
|
||||
this.send("refreshModel");
|
||||
});
|
||||
}
|
||||
|
|
|
@ -17,12 +17,13 @@ export default Controller.extend({
|
|||
const wizardId = this.get("wizard.id");
|
||||
window.location.href = getUrl(`/w/${wizardId}/steps/${nextStepId}`);
|
||||
} else {
|
||||
this.router.transitionToRoute("customWizardStep", nextStepId);
|
||||
debugger;
|
||||
this.router.transitionTo("customWizardStep", nextStepId);
|
||||
}
|
||||
},
|
||||
|
||||
goBack() {
|
||||
this.router.transitionToRoute(
|
||||
this.router.transitionTo(
|
||||
"customWizardStep",
|
||||
this.get("step.previous")
|
||||
);
|
||||
|
|
Laden …
In neuem Issue referenzieren