UX: Force refresh model to update last_run_at after a query is run

This commit is contained in:
Rishabh Nambiar 2018-08-30 14:13:40 +05:30
parent 3bdf624ced
commit 80f97d9514
2 changed files with 7 additions and 1 deletions

View File

@ -98,6 +98,7 @@ export default Ember.Controller.extend({
},
goHome() {
this.send('refreshModel');
this.set('selectedQueryId', null);
this.transitionToRoute('adminPlugins.explorer');
},

View File

@ -18,5 +18,10 @@ export default Discourse.Route.extend({
setupController: function(controller, model) {
controller.setProperties(model);
},
actions: {
refreshModel: function() {
this.refresh();
}
});
}});