mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:29:29 +08:00
UX: switch dashboard to be the new dashboard
Also: - add pageviews - add problems and version sections
This commit is contained in:
@ -19,23 +19,6 @@ AdminDashboard.reopenClass({
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
Only fetch the list of problems that should be rendered on the dashboard.
|
||||
The model will only have its "problems" attribute set.
|
||||
|
||||
@method fetchProblems
|
||||
@return {jqXHR} a jQuery Promise object
|
||||
**/
|
||||
fetchProblems: function() {
|
||||
return ajax("/admin/dashboard/problems.json", {
|
||||
type: 'GET',
|
||||
dataType: 'json'
|
||||
}).then(function(json) {
|
||||
var model = AdminDashboard.create(json);
|
||||
model.set('loaded', true);
|
||||
return model;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
export default AdminDashboard;
|
||||
|
Reference in New Issue
Block a user