mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
'use strict';
|
|
|
|
habitrpg.controller('StatsCtrl',
|
|
['$scope', 'User',
|
|
function($scope, User) {
|
|
$scope.refreshing = function () {
|
|
User.settings.fetching ? "spin" : ""
|
|
};
|
|
$scope.queueLength = function () {
|
|
User.settings.sync.queue.length || User.settings.sync.sent.length
|
|
};
|
|
$scope.stats = User.user.stats;
|
|
}
|
|
]);
|