This commit is contained in:
sanjayk03-dev
2024-03-29 04:43:44 +05:30
parent a11028110e
commit b33f1e9e16
2 changed files with 4 additions and 13 deletions

View File

@@ -453,7 +453,7 @@ module.exports = {
xhr.onload = function () {
if (xhr.status >= 200 && xhr.status < 300) {
console.log("File uploaded successfully");
console.log("File uploaded " + filename);
} else {
console.error("File upload failed:", xhr.statusText);
}
@@ -466,7 +466,7 @@ module.exports = {
xhr.upload.onprogress = function (event) {
if (event.lengthComputable) {
const progress = (event.loaded / event.total) * 100;
console.log("Upload progress:", progress);
console.log(filename + " Upload progress:", progress);
}
};
@@ -548,7 +548,6 @@ module.exports = {
],
});
}
console.log("537", this.config.gcode_list);
}
this.save_config(this.config);
@@ -564,9 +563,8 @@ module.exports = {
if (this.state.folder == "Unorganized files") {
this.config.gcode_list = this.config.gcode_list.filter(
item => item.type == "file" && item.name != this.state.selected,
item => (item.type == "file" || item.type == "folder") && item.name != this.state.selected,
);
console.log(this.config.gcode_list);
} else {
const file_to_delete = this.config.gcode_list.find(
item => item.name == this.state.folder && item.type == "folder",

View File

@@ -652,14 +652,6 @@ span.unit
#macros
width 104%
.gcodeContainer
width 25rem
height 15rem
border-width 1px
border-radius 10px
border-color #424242
border-style solid
.warning-box
display flex
background-color #F3FF00
@@ -677,6 +669,7 @@ span.unit
width 23rem
border-radius 10px
padding 20px
resize none
.flex-row-container
display flex