@@ -66,7 +66,18 @@
|
||||
body: JSON.stringify(runners),
|
||||
}
|
||||
)
|
||||
.then((response) => response.blob())
|
||||
.then((response) => {
|
||||
if (response.status != '200') {
|
||||
const toast = Toastify({
|
||||
text: $_('pdf-generation-failed'),
|
||||
duration: 1000,
|
||||
backgroundColor:
|
||||
'linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)',
|
||||
}).showToast();
|
||||
} else {
|
||||
return response.blob();
|
||||
}
|
||||
})
|
||||
.then((blob) => {
|
||||
count++;
|
||||
const url = window.URL.createObjectURL(blob);
|
||||
|
||||
Reference in New Issue
Block a user