mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
add loader while archive is not ready
This commit is contained in:
parent
c8f6e377f7
commit
c223bd99ea
@ -204,6 +204,10 @@ table.closings-table {
|
||||
margin-left: 2em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
& > span.no-pointer {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
tbody .show-more {
|
||||
|
@ -66,7 +66,8 @@
|
||||
<td>{{period.end_at | amDateFormat:'L'}}</td>
|
||||
<td class="actions">
|
||||
<span class="show-more" uib-popover-template="'<%= asset_path 'admin/invoices/_period.html' %>'"><i class="fa fa-info-circle"></i></span>
|
||||
<span class="download-archive" ng-click="downloadArchive(period)"><i class="fa fa-archive"></i></span>
|
||||
<span class="download-archive" ng-click="downloadArchive(period)" ng-show="period.archive_ready"><i class="fa fa-archive"></i></span>
|
||||
<span class="no-pointer" ng-hide="period.archive_ready"><i class="fa fa-spinner fa-pulse"></i></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -6,4 +6,5 @@ json.array!(@accounting_periods) do |ap|
|
||||
json.perpetual_total ap.perpetual_total / 100.0
|
||||
json.chained_footprint ap.check_footprint
|
||||
json.user_name "#{ap.first_name} #{ap.last_name}"
|
||||
json.archive_ready FileTest.exist?(ap.archive_file)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user