Changed the basic nameing generation for runenr certificate files
ref #119
This commit is contained in:
parent
3638d87bd2
commit
d65d3793de
@ -70,7 +70,12 @@
|
|||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = "Certificates.pdf";
|
if(generate_runners.length == 1){
|
||||||
|
a.download = `Certificates_${generate_runners[0].firstname}_${generate_runners[0].lastname}_.pdf`;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
a.download = `Certificates.pdf`;
|
||||||
|
}
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
@ -129,7 +134,7 @@
|
|||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = "Certificates_" + t.name + ".pdf";
|
a.download = `Certificates_${t.name}.pdf`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
@ -191,7 +196,7 @@
|
|||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = "Certificates_" + o.name + ".pdf";
|
a.download = `Certificates_${o.name}.pdf`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user