FIX: the back button (#130)
Back button wasn't working when running in Ember CLI. This PR fixes it by doing the transition to the same route but without URL parameter properly. This works in both our environments (legacy-3.12.0, and ember-cli-3.15.0).
This commit is contained in:
@@ -155,8 +155,7 @@ export default Ember.Controller.extend({
|
||||
selectedQueryId: null,
|
||||
sortBy: ["last_run_at:desc"],
|
||||
});
|
||||
this.send("refreshModel");
|
||||
this.transitionToRoute("adminPlugins.explorer");
|
||||
this.transitionToRoute({ queryParams: { id: null } });
|
||||
},
|
||||
|
||||
showHelpModal() {
|
||||
|
||||
@@ -40,11 +40,4 @@ export default DiscourseRoute.extend({
|
||||
setupController(controller, model) {
|
||||
controller.setProperties(model);
|
||||
},
|
||||
|
||||
actions: {
|
||||
refreshModel() {
|
||||
this.refresh();
|
||||
return false;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user