diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2017-03-10 13:31:30 +0100 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2017-03-10 13:37:55 +0100 |
commit | e20ffc6e00e917a19fc4b3ee7b0c6ed75c84f001 (patch) | |
tree | a01ed46d2b6515308934623388d43e00673eddda /app/views/dashboard | |
parent | 69c1a9ae868593192d45642d3ad1550e057f877f (diff) | |
download | gitlab-ce-e20ffc6e00e917a19fc4b3ee7b0c6ed75c84f001.tar.gz |
Add 'Undo' to Todos in the Done tab
Added the ability to 'Undo' the todos marked complete in the 'Done' tab of the Todo dashboard.
Added the ability to 'Undo mark all as done' todos marked complete with 'Mark all as done'
in the 'Todo' tab of the Todo dashboard.
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/todos/_todo.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml index a3993d5ef16..388190642aa 100644 --- a/app/views/dashboard/todos/_todo.html.haml +++ b/app/views/dashboard/todos/_todo.html.haml @@ -42,3 +42,8 @@ = link_to restore_dashboard_todo_path(todo), method: :patch, class: 'btn btn-loading js-undo-todo hidden' do Undo = icon('spinner spin') + - else + .todo-actions + = link_to restore_dashboard_todo_path(todo), method: :patch, class: 'btn btn-loading js-add-todo' do + Add todo + = icon('spinner spin') |