mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
habitrpg.controller('StatsCtrl',
|
||
|
|
['$scope', 'User',
|
||
|
|
function($scope, User) {
|
||
|
|
$scope.refreshing = function () {
|
||
|
|
return User.settings.fetching ? "spin" : ""
|
||
|
|
};
|
||
|
|
$scope.queueLength = function () {
|
||
|
|
return User.settings.sync.queue.length || User.settings.sync.sent.length
|
||
|
|
};
|
||
|
|
$scope.stats = User.user.stats;
|
||
|
|
}
|
||
|
|
]);
|