use widget name in more export dialogs

This commit is contained in:
Stewart Allen 2021-07-25 11:44:52 -04:00
commit 8fd32c033b
3 changed files with 26 additions and 25 deletions

View file

@ -19,9 +19,10 @@
});
};
SLA.printDownload = function(output, API) {
SLA.printDownload = function(output, API, names) {
const { file, width, height, layers } = output;
const filename = `print-${new Date().getTime().toString(36)}`;
const fileroot = names[0] || "print";
const filename = `${fileroot}-${new Date().getTime().toString(36)}`;
API.ajax("/kiri/output-sla.html", html => {
API.ui.print.innerHTML = html;