mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Cache dashboard data in the controller, not the report model
This commit is contained in:
@@ -5,6 +5,7 @@ Discourse.AdminDashboard.reopenClass({
|
||||
var model = Discourse.AdminDashboard.create();
|
||||
return $.ajax("/admin/dashboard", {
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: function(json) {
|
||||
model.mergeAttributes(json);
|
||||
model.set('loaded', true);
|
||||
|
||||
Reference in New Issue
Block a user