mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: Correct router service call from some admin controllers (#22757)
72edb727 updated these to point to the router service, but the method name also needed to be changed from replaceRoute -> replaceWith
This commit is contained in:
@ -51,7 +51,7 @@ export default class AdminCustomizeThemesEditController extends Controller {
|
||||
|
||||
@action
|
||||
fieldAdded(target, name) {
|
||||
this.router.replaceRoute(
|
||||
this.router.replaceWith(
|
||||
this.editRouteName,
|
||||
this.get("model.id"),
|
||||
target,
|
||||
@ -68,7 +68,7 @@ export default class AdminCustomizeThemesEditController extends Controller {
|
||||
(f) => f.edited
|
||||
);
|
||||
|
||||
this.router.replaceRoute(
|
||||
this.router.replaceWith(
|
||||
this.editRouteName,
|
||||
this.get("model.id"),
|
||||
firstTarget.name,
|
||||
@ -80,6 +80,6 @@ export default class AdminCustomizeThemesEditController extends Controller {
|
||||
|
||||
@action
|
||||
goBack() {
|
||||
this.router.replaceRoute(this.showRouteName, this.model.id);
|
||||
this.router.replaceWith(this.showRouteName, this.model.id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user