Add loading message and spinner

This commit is contained in:
Matt-Yorkley
2018-09-17 12:45:26 +01:00
parent 9da6a5a9b3
commit 68f0c80016
3 changed files with 21 additions and 0 deletions

View File

@@ -91,3 +91,15 @@ th.actions {
table.index td.actions {
text-align: left;
}
.orders-loading {
margin-top: 1em;
img {
width: 85px;
}
span {
font-size: 1.2em;
}
}

View File

@@ -101,6 +101,14 @@
%div{'ng-if' => 'order.pending_payments'}
%a.icon-capture.icon_link.no-text{'ng-href' => '{{::order.capture_path}}', 'data-action' => 'capture', 'data-method' => 'put', rel: 'nofollow', 'ofn-with-tip' => t(:capture)}
.orders-loading{'ng-show' => 'RequestMonitor.loading'}
.row
.small-12.columns.fullwidth.text-center
%img.spinner{ src: "/assets/spinning-circles.svg" }
.row
.small-12.columns.fullwidth.text-center
%span= t(:loading)
%div{'ng-show' => "!RequestMonitor.loading && orders.length > 0" }
= render partial: 'angular_pagination'

View File

@@ -622,6 +622,7 @@ en:
last: "Last"
previous: "Previous"
next: "Next"
loading: "Loading"
invoice_email_sent: 'Invoice email has been sent'
order_email_resent: 'Order email has been resent'
bulk_management: