use widget name in more export dialogs
This commit is contained in:
parent
5748912ef0
commit
8fd32c033b
3 changed files with 26 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue