Commit 1e1b8f11 authored by Tsegaselassie Tadesse's avatar Tsegaselassie Tadesse

Migrate fa-spinner to spinner in views dashboard todos.

parent 891f27a5
......@@ -371,12 +371,15 @@
}
.btn-loading {
&:not(.disabled) .fa {
display: flex;
align-items: center;
&:not(.disabled) .spinner {
display: none;
}
.fa {
margin-right: 5px;
.spinner {
margin-left: 5px;
}
}
......
......@@ -50,12 +50,12 @@
.todo-actions
= link_to dashboard_todo_path(todo), method: :delete, class: 'btn btn-loading js-done-todo', data: { href: dashboard_todo_path(todo) } do
Done
= icon('spinner spin')
%i{class:"spinner"}
= link_to restore_dashboard_todo_path(todo), method: :patch, class: 'btn btn-loading js-undo-todo hidden', data: { href: restore_dashboard_todo_path(todo) } do
Undo
= icon('spinner spin')
%i{class:"spinner"}
- else
.todo-actions
= link_to restore_dashboard_todo_path(todo), method: :patch, class: 'btn btn-loading js-add-todo', data: { href: restore_dashboard_todo_path(todo) } do
Add a To Do
= icon('spinner spin')
%i{class:"spinner"}
......@@ -28,10 +28,10 @@
.append-right-default
= link_to destroy_all_dashboard_todos_path(todos_filter_params), class: 'btn btn-loading js-todos-mark-all', method: :delete, data: { href: destroy_all_dashboard_todos_path(todos_filter_params) } do
Mark all as done
= icon('spinner spin')
%i{class:"spinner"}
= link_to bulk_restore_dashboard_todos_path, class: 'btn btn-loading js-todos-undo-all hidden', method: :patch , data: { href: bulk_restore_dashboard_todos_path(todos_filter_params) } do
Undo mark all as done
= icon('spinner spin')
%i{class:"spinner"}
.todos-filters
.issues-details-filters.row-content-block.second-block
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment