UX: switch dashboard to be the new dashboard

Also:
- add pageviews
- add problems and version sections
This commit is contained in:
Sam
2018-05-14 13:07:59 +10:00
parent d6316ac4b9
commit 6332d5040d
15 changed files with 137 additions and 114 deletions

View File

@ -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;