mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Loaded completed todos when done is clicked
This commit is contained in:
@@ -140,6 +140,13 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
||||
*/
|
||||
$scope._today = moment().add({days: 1});
|
||||
|
||||
$scope.loadedCompletedTodos = function () {
|
||||
Tasks.getUserTasks(true)
|
||||
.then(function (response) {
|
||||
User.user.todos.concat(response.data.data);
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
------------------------
|
||||
Dailies
|
||||
|
||||
Reference in New Issue
Block a user