mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 11:00:56 +00:00
feat: clear
This commit is contained in:
parent
3cbe187292
commit
ca1993533e
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,7 @@
|
||||||
|
|
||||||
const generatePdf = async () => {
|
const generatePdf = async () => {
|
||||||
const template = (await import('$lib/assets/pdf/drawing.svg?raw')).default;
|
const template = (await import('$lib/assets/pdf/drawing.svg?raw')).default;
|
||||||
|
|
||||||
const svg = template
|
const svg = template
|
||||||
.replace('${APPLICATION}', login.applicationId.toString())
|
.replace('${APPLICATION}', login.applicationId.toString())
|
||||||
.replace('${CODE}', login.password);
|
.replace('${CODE}', login.password);
|
||||||
|
|
@ -100,6 +101,8 @@
|
||||||
await doc.svg(element);
|
await doc.svg(element);
|
||||||
|
|
||||||
doc.save('PRIHLASOVACI_UDAJE_' + login.applicationId.toString());
|
doc.save('PRIHLASOVACI_UDAJE_' + login.applicationId.toString());
|
||||||
|
|
||||||
|
element.innerHTML = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const close = () => {
|
const close = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue