fixed bulk action export action

This commit is contained in:
Cüneyt Şentürk 2021-05-23 18:45:33 +03:00
parent 4e924ab46d
commit e6e74a44b7

View File

@ -106,6 +106,7 @@ export default class BulkAction {
}));
download_promise.then((response) => {
if (response.data.type != 'application/json') {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
@ -137,6 +138,11 @@ export default class BulkAction {
this.modal = false;
this.value = '*';
this.clear();
return;
}
window.location.reload(false);
});
break;
default: