Final Build
This commit is contained in:
@@ -504,13 +504,11 @@ module.exports = {
|
|||||||
SvelteComponents.showDialog("Probe", { probeType });
|
SvelteComponents.showDialog("Probe", { probeType });
|
||||||
},
|
},
|
||||||
runMacros : function(id){
|
runMacros : function(id){
|
||||||
console.log(id);
|
|
||||||
if( this.config.macros[id].gcode_file_name != this.state.selected || this.config.macros[id].gcode_file_time != this.state.selected_time ){
|
if( this.config.macros[id].gcode_file_name != this.state.selected || this.config.macros[id].gcode_file_time != this.state.selected_time ){
|
||||||
this.state.selected=this.config.macros[id].gcode_file_name;
|
this.state.selected=this.config.macros[id].gcode_file_name;
|
||||||
this.state.selected_time=this.config.macros[id].gcode_file_time
|
this.state.selected_time=this.config.macros[id].gcode_file_time
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
console.log(this.state.selected, this.state.selected_time);
|
|
||||||
this.load();
|
this.load();
|
||||||
this.start_pause();
|
this.start_pause();
|
||||||
}catch(error){
|
}catch(error){
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ module.exports = {
|
|||||||
this.state.selected_time;
|
this.state.selected_time;
|
||||||
this.cancelMacros(this.tab - 1);
|
this.cancelMacros(this.tab - 1);
|
||||||
this.confirmSave = false;
|
this.confirmSave = false;
|
||||||
console.log(this.config.macros);
|
|
||||||
try {
|
try {
|
||||||
await api.put("config/save", this.config);
|
await api.put("config/save", this.config);
|
||||||
console.log("Successfully saved");
|
console.log("Successfully saved");
|
||||||
@@ -192,7 +191,6 @@ module.exports = {
|
|||||||
this.confirmReset = false;
|
this.confirmReset = false;
|
||||||
try {
|
try {
|
||||||
await api.put("config/save", this.config);
|
await api.put("config/save", this.config);
|
||||||
console.log("Successfully flushed");
|
|
||||||
this.$dispatch("update");
|
this.$dispatch("update");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Restore Failed: ", error);
|
console.error("Restore Failed: ", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user