DEV: Fix replaceRoute

This commit is contained in:
Jarek Radosz 2023-01-16 00:49:15 +01:00
parent 8c197b4fb4
commit ae4b938690
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
import Controller from "@ember/controller";
import { computed } from "@ember/object";
import { inject as service } from "@ember/service";
export default Controller.extend({
router: service(),
managerRepo: null,
upgrading: null,
@ -19,7 +22,7 @@ export default Controller.extend({
actions: {
upgradeAllButton() {
this.replaceRoute("upgrade", "all");
this.router.replaceWith("upgrade.show", "all");
},
},
});