listing gcodes in control-view
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -297,7 +297,7 @@ script#control-view-template(type="text/x-template")
|
||||
select(title="Select previously uploaded GCode programs.",
|
||||
v-model="state.selected", @change="load", :disabled="!is_ready",
|
||||
style="max-width:100%")
|
||||
option(v-for="file in gcode_files", :value="file") {{file}}
|
||||
option(v-for="file in gcodeFiles", :value="file") {{file}}
|
||||
|
||||
.progress(v-if="toolpath_progress && toolpath_progress < 1",
|
||||
title="Simulating GCode to check for errors, calculate ETA and " +
|
||||
|
||||
Reference in New Issue
Block a user