Skip to content

Commit 5f24bf8

Browse files
committed
Add ajax error handler.
1 parent 189a192 commit 5f24bf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/resources/views/export-button.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
var url = window._buildUrl(LaravelDataTables['{{ $tableId }}'], 'exportQueue');
66
$.get(url + '&exportType={{$type}}').then(function(exportId) {
77
$wire.export(exportId)
8+
}).catch(function(error) {
9+
$wire.exportFinished = true;
10+
$wire.exporting = false;
11+
$wire.exportFailed = true;
812
});
913
"
1014
>

0 commit comments

Comments
 (0)