UX: Force refresh model to update last_run_at after a query is run
This commit is contained in:
parent
3bdf624ced
commit
80f97d9514
|
@ -98,6 +98,7 @@ export default Ember.Controller.extend({
|
|||
},
|
||||
|
||||
goHome() {
|
||||
this.send('refreshModel');
|
||||
this.set('selectedQueryId', null);
|
||||
this.transitionToRoute('adminPlugins.explorer');
|
||||
},
|
||||
|
|
|
@ -18,5 +18,10 @@ export default Discourse.Route.extend({
|
|||
|
||||
setupController: function(controller, model) {
|
||||
controller.setProperties(model);
|
||||
},
|
||||
|
||||
actions: {
|
||||
refreshModel: function() {
|
||||
this.refresh();
|
||||
}
|
||||
});
|
||||
}});
|
||||
|
|
Loading…
Reference in New Issue