From 9a0ba22fe8346b1704d332f05727f86b716cb818 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 14 Jul 2025 19:11:46 +0200 Subject: [PATCH] That's how we do in the east. --- src/snek/static/file-upload-grid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/snek/static/file-upload-grid.js b/src/snek/static/file-upload-grid.js index d214cb8..8cdd4e9 100644 --- a/src/snek/static/file-upload-grid.js +++ b/src/snek/static/file-upload-grid.js @@ -12,6 +12,7 @@ class FileUploadGrid extends NjetComponent { this.channelUid = null ; this.uploadsDone = 0; this.uploadsStarted = 0; + this.uploadResponses = []; } openFileDialog() { @@ -165,8 +166,10 @@ class FileUploadGrid extends NjetComponent { this.uploadResponses.push({file:file, remoteFile:data.file}) if(this.uploadsDone == this.uploadsStarted){ this.publish('file-uploads-done', this.uploadResponses); + console.info({"X":this.uploadResponses}) + this.reset() } - this.reset() + } }; }