v3 client: misc fixes

This commit is contained in:
Matteo Pagliazzi
2016-05-16 12:54:43 +02:00
parent 4d08fde068
commit ab27ef47fe
5 changed files with 35 additions and 24 deletions

View File

@@ -289,7 +289,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
}
});
} else if (spell.target == 'tasks') {
var tasks = User.user.habits.concat(User.user.dailys).concat(User.user.rewards);
var tasks = User.user.habits.concat(User.user.dailys).concat(User.user.rewards).concat(User.user.todos);
// exclude challenge tasks
tasks = tasks.filter(function (t) {
if (!t.challenge) return true;

View File

@@ -176,6 +176,7 @@ habitrpg.controller('SettingsCtrl',
$scope.reset = function(){
User.reset({});
User.sync();
$rootScope.$state.go('tasks');
}