Commit 175fc75f authored by Shubham Pandey's avatar Shubham Pandey Committed by Martin Wortschack

[UPDATE] Migrating `fa-spinner` from `app/views/shared/notifications`

parent 1ea6cbbb
...@@ -26,7 +26,7 @@ export default class NotificationsForm { ...@@ -26,7 +26,7 @@ export default class NotificationsForm {
.addClass('is-loading') .addClass('is-loading')
.find('.custom-notification-event-loading') .find('.custom-notification-event-loading')
.removeClass('fa-check') .removeClass('fa-check')
.addClass('fa-spin fa-spinner') .addClass('spinner align-middle')
.removeClass('is-done'); .removeClass('is-done');
} }
...@@ -41,12 +41,12 @@ export default class NotificationsForm { ...@@ -41,12 +41,12 @@ export default class NotificationsForm {
if (data.saved) { if (data.saved) {
$parent $parent
.find('.custom-notification-event-loading') .find('.custom-notification-event-loading')
.toggleClass('fa-spin fa-spinner fa-check is-done'); .toggleClass('spinner fa-check is-done align-middle');
setTimeout(() => { setTimeout(() => {
$parent $parent
.removeClass('is-loading') .removeClass('is-loading')
.find('.custom-notification-event-loading') .find('.custom-notification-event-loading')
.toggleClass('fa-spin fa-spinner fa-check is-done'); .toggleClass('spinner fa-check is-done align-middle');
}, 2000); }, 2000);
} }
}) })
......
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,4 @@
%label.form-check-label{ for: field_id } %label.form-check-label{ for: field_id }
%strong %strong
= notification_event_name(event) = notification_event_name(event)
= icon("spinner spin", class: "custom-notification-event-loading") .fa.custom-notification-event-loading.spinner
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