mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3 client: misc fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -176,6 +176,7 @@ habitrpg.controller('SettingsCtrl',
|
||||
|
||||
$scope.reset = function(){
|
||||
User.reset({});
|
||||
User.sync();
|
||||
$rootScope.$state.go('tasks');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user