Fixed mainaining state while deleting, removed time from config

This commit is contained in:
sanjayk03-dev
2024-01-23 14:18:26 +05:30
parent 4d311bd083
commit aa48701bcc
3 changed files with 525 additions and 528 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -145,9 +145,9 @@ module.exports = {
file, file,
onComplete: () => { onComplete: () => {
this.last_file_time = undefined; // Force reload this.last_file_time = undefined; // Force reload
this.loadMacrosGcode();
}, },
}); });
this.loadMacrosGcode();
}, },
uploadGCode: async function (filename, file) { uploadGCode: async function (filename, file) {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();

View File

@@ -681,13 +681,7 @@
"gcode_file_name": "TurnOffVac.ngc", "gcode_file_name": "TurnOffVac.ngc",
"gcode_file_time": 1705008395.476232 "gcode_file_time": 1705008395.476232
} }
], ]
"template": {
"gcode_file_time": {
"type": "int",
"default": 1705008395
}
}
}, },
"admin": { "admin": {