fixed bulk action export action
This commit is contained in:
parent
4e924ab46d
commit
e6e74a44b7
6
resources/assets/js/plugins/bulk-action.js
vendored
6
resources/assets/js/plugins/bulk-action.js
vendored
@ -106,6 +106,7 @@ export default class BulkAction {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
download_promise.then((response) => {
|
download_promise.then((response) => {
|
||||||
|
if (response.data.type != 'application/json') {
|
||||||
const blob = new Blob([response.data], {type: response.data.type});
|
const blob = new Blob([response.data], {type: response.data.type});
|
||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
const link = document.createElement('a');
|
const link = document.createElement('a');
|
||||||
@ -137,6 +138,11 @@ export default class BulkAction {
|
|||||||
this.modal = false;
|
this.modal = false;
|
||||||
this.value = '*';
|
this.value = '*';
|
||||||
this.clear();
|
this.clear();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.location.reload(false);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user