icon fix, opening fix

This commit is contained in:
sanjayk03-dev
2024-03-26 23:36:58 +05:30
parent aaec4f1197
commit 63421aeeec
2 changed files with 9 additions and 5 deletions

View File

@@ -349,10 +349,14 @@ module.exports = {
this.mdi = this.history[index];
},
open: function () {
open_file: function () {
utils.clickFileInput("gcode-file-input");
},
open_folder: function () {
utils.clickFileInput("gcode-folder-input");
},
upload_file: async function (e) {
const files = e.target.files || e.dataTransfer.files;
if (!files.length) {
@@ -396,7 +400,7 @@ module.exports = {
});
},
upload_folder: function (e) {
upload_folder: async function (e) {
console.log(e);
const folderInput = document.getElementById('folderInput');
console.log(folderInput);