Commit fb6d5bd6 authored by Mark Florian's avatar Mark Florian

Merge branch 'migrate-fa-spinner-in-views-dashboard-todos' into 'master'

Migrate fa-spinner to spinner in views dashboard todos.

See merge request gitlab-org/gitlab!25142
parents 95e0993d 187565f7
...@@ -371,9 +371,12 @@ ...@@ -371,9 +371,12 @@
} }
.btn-loading { .btn-loading {
&:not(.disabled) .fa { &:not(.disabled) {
.fa,
.spinner {
display: none; display: none;
} }
}
.fa { .fa {
margin-right: 5px; margin-right: 5px;
......
...@@ -48,14 +48,14 @@ ...@@ -48,14 +48,14 @@
- if todo.pending? - if todo.pending?
.todo-actions .todo-actions
= link_to dashboard_todo_path(todo), method: :delete, class: 'btn btn-loading js-done-todo', data: { href: dashboard_todo_path(todo) } do = link_to dashboard_todo_path(todo), method: :delete, class: 'btn btn-loading d-flex align-items-center js-done-todo', data: { href: dashboard_todo_path(todo) } do
Done Done
= icon('spinner spin') %span.spinner.ml-1
= 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 = link_to restore_dashboard_todo_path(todo), method: :patch, class: 'btn btn-loading d-flex align-items-center js-undo-todo hidden', data: { href: restore_dashboard_todo_path(todo) } do
Undo Undo
= icon('spinner spin') %span.spinner.ml-1
- else - else
.todo-actions .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 = link_to restore_dashboard_todo_path(todo), method: :patch, class: 'btn btn-loading d-flex align-items-center js-add-todo', data: { href: restore_dashboard_todo_path(todo) } do
Add a To Do Add a To Do
= icon('spinner spin') %span.spinner.ml-1
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
.nav-controls .nav-controls
- if @todos.any?(&:pending?) - if @todos.any?(&:pending?)
.append-right-default .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 = link_to destroy_all_dashboard_todos_path(todos_filter_params), class: 'btn btn-loading d-flex align-items-center js-todos-mark-all', method: :delete, data: { href: destroy_all_dashboard_todos_path(todos_filter_params) } do
Mark all as done Mark all as done
= icon('spinner spin') %span.spinner.ml-1
= 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 = link_to bulk_restore_dashboard_todos_path, class: 'btn btn-loading d-flex align-items-center js-todos-undo-all hidden', method: :patch , data: { href: bulk_restore_dashboard_todos_path(todos_filter_params) } do
Undo mark all as done Undo mark all as done
= icon('spinner spin') %span.spinner.ml-1
.todos-filters .todos-filters
.issues-details-filters.row-content-block.second-block .issues-details-filters.row-content-block.second-block
......
---
title: Use new loading spinner in Todos dashboard buttons
merge_request: 25142
author: Tsegaselassie Tadesse
type: other
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