summaryrefslogtreecommitdiff
path: root/app/views/dashboard
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-03-13 15:02:40 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-03-13 15:02:40 +0000
commitcc64eda987d2b1dfc7c0af4255bd09f072301f9c (patch)
tree60f1a69b5be536278f3d559de82d4919ff829204 /app/views/dashboard
parent0240caa02a69e6e4e30b7fa473ba3e1baf76ef0c (diff)
parente20ffc6e00e917a19fc4b3ee7b0c6ed75c84f001 (diff)
downloadgitlab-ce-cc64eda987d2b1dfc7c0af4255bd09f072301f9c.tar.gz
Merge branch '27114-add-undo-to-todos-in-the-done-tab' into 'master'
Add 'Undo' to Todos in the Done tab Closes #27114 See merge request !8782
Diffstat (limited to 'app/views/dashboard')
-rw-r--r--app/views/dashboard/todos/_todo.html.haml5
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')