diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-02-18 09:06:22 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-02-18 09:06:22 +0000 |
commit | 6eb45df2fd62c85920c3ef025d7dacadcda05bf4 (patch) | |
tree | 0fb4cdc4e765e1ab48ddf17cba4b179b68dcc4a2 /app/controllers | |
parent | 5f3f6ee605f3151214030835d058199fddac46fd (diff) | |
parent | 26160459b56019f445a7d29abc0b72f591e1d2a9 (diff) | |
download | gitlab-ce-6eb45df2fd62c85920c3ef025d7dacadcda05bf4.tar.gz |
Merge branch '25465-todo-done-clicking-is-kind-of-unsafe' into 'master'
Todo done clicking is kind of unusable.
Closes #25465
See merge request !8691
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/dashboard/todos_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb index e3933e3d7b1..4e61b0886d8 100644 --- a/app/controllers/dashboard/todos_controller.rb +++ b/app/controllers/dashboard/todos_controller.rb @@ -29,6 +29,12 @@ class Dashboard::TodosController < Dashboard::ApplicationController end end + def restore + TodoService.new.mark_todos_as_pending_by_ids([params[:id]], current_user) + + render json: todos_counts + end + private def find_todos |