fixed cancel with id,
This commit is contained in:
@@ -80,7 +80,7 @@ module.exports = {
|
|||||||
this.config.macros[id].gcode_file_name = this.state.selected;
|
this.config.macros[id].gcode_file_name = this.state.selected;
|
||||||
this.config.macros[id].gcode_file_time = this.state.selected_time;
|
this.config.macros[id].gcode_file_time = this.state.selected_time;
|
||||||
console.log(this.config.macros);
|
console.log(this.config.macros);
|
||||||
this.cancelMacros();
|
this.cancelMacros(id);
|
||||||
try {
|
try {
|
||||||
await api.put("config/save", this.config);
|
await api.put("config/save", this.config);
|
||||||
console.log("Successfully saved");
|
console.log("Successfully saved");
|
||||||
|
|||||||
@@ -44,9 +44,10 @@ script#macros-template(type="text/x-template")
|
|||||||
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-0")
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-0")
|
||||||
p.title G-Code
|
p.title G-Code
|
||||||
.select-upload-gcode
|
.select-upload-gcode
|
||||||
select(title="Select previously uploaded GCode programs.",
|
select#gcodeSelect(title="Select previously uploaded GCode programs.",selected
|
||||||
v-model="state.selected",@change="load", :disabled="!is_ready",
|
v-model="state.selected",@change="load", :disabled="!is_ready",
|
||||||
style="max-width:100%;height:40px;border-radius:5px")
|
style="max-width:100%;height:40px;border-radius:5px")
|
||||||
|
option(disabled='' selected='' value='default') -- select an option --
|
||||||
option(v-for="file in state.files", :value="file") {{file}}
|
option(v-for="file in state.files", :value="file") {{file}}
|
||||||
|
|
||||||
button.pure-button(title="Upload a new GCode program.", @click="open",
|
button.pure-button(title="Upload a new GCode program.", @click="open",
|
||||||
|
|||||||
Reference in New Issue
Block a user