mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-06-28 10:32:11 +00:00
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() {
|
goHome() {
|
||||||
|
this.send('refreshModel');
|
||||||
this.set('selectedQueryId', null);
|
this.set('selectedQueryId', null);
|
||||||
this.transitionToRoute('adminPlugins.explorer');
|
this.transitionToRoute('adminPlugins.explorer');
|
||||||
},
|
},
|
||||||
|
@ -18,5 +18,10 @@ export default Discourse.Route.extend({
|
|||||||
|
|
||||||
setupController: function(controller, model) {
|
setupController: function(controller, model) {
|
||||||
controller.setProperties(model);
|
controller.setProperties(model);
|
||||||
|
},
|
||||||
|
|
||||||
|
actions: {
|
||||||
|
refreshModel: function() {
|
||||||
|
this.refresh();
|
||||||
}
|
}
|
||||||
});
|
}});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user