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:
parent
7a348aaa8b
commit
e85aab4b33
|
@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue