Commit 16a378d4 authored by Laury Bueno's avatar Laury Bueno
Browse files

[Dashboard] Call UserAccess

parent 73bf15e0
......@@ -337,4 +337,9 @@
return vd;
}]);
app.factory('UserAccess', function($resource){
return $resource(API_URL + '/stats/user-access', {}, {'save': {'method': 'POST', 'ignoreLoadingBar': true}});
});
})(window.angular);
......@@ -7,15 +7,19 @@
'Course',
'CourseStudent',
'Topic',
'UserAccess',
// 'Cards',
function (
$scope,
Course,
CourseStudent,
Topic,
UserAccess,
// Cards
) {
(new UserAccess({ area: 'dashboard'})).$save();
function compare_by_course_student(a,b) {
if (a.course_student === undefined) {
return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment