|
@@ -1213,5 +1213,32 @@
|
|
|
Livewire.on('hide-export-modal', function() {
|
|
Livewire.on('hide-export-modal', function() {
|
|
|
hideExportLoading();
|
|
hideExportLoading();
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ function setupSimpleExportListeners() {
|
|
|
|
|
+ if (typeof Livewire !== 'undefined') {
|
|
|
|
|
+ Livewire.on('export-email-queued', function() {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ hideExportLoading();
|
|
|
|
|
+ $('#exportModal').modal('hide');
|
|
|
|
|
+
|
|
|
|
|
+ showToast('success',
|
|
|
|
|
+ '<i class="fas fa-paper-plane me-2"></i>' +
|
|
|
|
|
+ '<strong>Export avviato!</strong><br>' +
|
|
|
|
|
+ 'Riceverai l\'email a breve.',
|
|
|
|
|
+ 6000
|
|
|
|
|
+ );
|
|
|
|
|
+ }, 1500);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ Livewire.on('export-complete', function() {
|
|
|
|
|
+ hideExportLoading();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ Livewire.on('hide-export-modal', function() {
|
|
|
|
|
+ hideExportLoading();
|
|
|
|
|
+ $('#exportModal').modal('hide');
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</script>
|
|
</script>
|
|
|
@endpush
|
|
@endpush
|