diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2017-01-29 10:44:30 +0100 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2017-03-16 07:15:00 +0100 |
commit | 5f9ace8eb1d71b35c92156177465b066ebbc4a3e (patch) | |
tree | 5af8e80ecace78f4d165cb470062e6a2cd53c853 /lib/api/v3 | |
parent | 5e05d6b8cf26c424378ef6091a4b38c2d424808e (diff) | |
download | gitlab-ce-5f9ace8eb1d71b35c92156177465b066ebbc4a3e.tar.gz |
Add 'Undo mark all as done' to Todos
Added the ability to 'Undo mark all as done' todos marked as complete with 'Mark all as done'
in the 'Todo' tab of the Todo dashboard.
The operation undos only the todo previously marked as done with the 'Mark al as done' button.
Diffstat (limited to 'lib/api/v3')
-rw-r--r-- | lib/api/v3/todos.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/todos.rb b/lib/api/v3/todos.rb index e60cb25e57b..e3b311d61cd 100644 --- a/lib/api/v3/todos.rb +++ b/lib/api/v3/todos.rb @@ -20,9 +20,9 @@ module API desc 'Mark all todos as done' delete do status(200) - + todos = TodosFinder.new(current_user, params).execute - TodoService.new.mark_todos_as_done(todos, current_user) + TodoService.new.mark_todos_as_done(todos, current_user).size end end end |