listing gcodes in control-view

This commit is contained in:
sanjayk03-dev
2024-01-22 16:49:08 +05:30
parent b53524b83d
commit 19aaadc4a3
2 changed files with 4 additions and 2 deletions

View File

@@ -202,7 +202,9 @@ module.exports = {
const p = this.plan_time / this.toolpath.time;
return Math.min(1, p);
},
gcode_files: async function (){
macrosList: function () {
console.log(this.state.files);
console.log(this.config.macrosList);
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
console.log(files);
return files;