Upload prints

This commit is contained in:
Natsumi
2024-11-19 18:33:28 +13:00
parent 7db66c6737
commit da3e318915
4 changed files with 32 additions and 20 deletions

View File

@@ -17505,7 +17505,7 @@ speechSynthesis.getVoices();
};
API.$on('PRINT:LIST', function (args) {
$app.printTable = args.json.reverse();
$app.printTable = args.json;
$app.galleryDialogPrintsLoading = false;
});
@@ -17524,6 +17524,8 @@ speechSynthesis.getVoices();
}
});
$app.data.printUploadNote = '';
$app.methods.onFileChangePrint = function (e) {
var clearFile = function () {
if (document.querySelector('#PrintUploadButton')) {
@@ -17556,8 +17558,8 @@ speechSynthesis.getVoices();
var date = new Date();
var timestamp = date.toISOString().slice(0, 19);
var params = {
note: 'test print',
worldId: 'wrld_10e5e467-fc65-42ed-8957-f02cace1398c',
note: $app.printUploadNote,
// worldId: '',
timestamp
};
var base64Body = btoa(r.result);