changed func names in macros,
This commit is contained in:
@@ -205,6 +205,7 @@ module.exports = {
|
||||
gcodeFiles: function () {
|
||||
const filesWithNoMacros=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
|
||||
console.log('filesWithNoMacros: ',filesWithNoMacros);
|
||||
console.log("this.config.gcodeList",this.config.gcodeList)
|
||||
const unionSet = new Set([...filesWithNoMacros, ...this.config.gcodeList]);
|
||||
const files = [...unionSet];
|
||||
console.log("files: ",files);
|
||||
@@ -536,20 +537,6 @@ module.exports = {
|
||||
console.warn("Error running program: ",error);
|
||||
}
|
||||
},
|
||||
// gcode_files: async function (){
|
||||
// const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
|
||||
// console.log(files);
|
||||
// this.config.gcodeList=files;
|
||||
// try {
|
||||
// await api.put("config/save", this.config);
|
||||
// console.log("Successfully saved");
|
||||
// this.$dispatch("update");
|
||||
// } catch (error) {
|
||||
// console.error("Restore Failed: ", error);
|
||||
// alert("Restore failed");
|
||||
// }
|
||||
// return files;
|
||||
// }
|
||||
},
|
||||
|
||||
mixins: [ require("./axis-vars") ]
|
||||
|
||||
Reference in New Issue
Block a user