syncing message

This commit is contained in:
sanjayk03-dev
2024-01-23 11:26:18 +05:30
parent 4fe0b90fff
commit f58f51615a
2 changed files with 10 additions and 9 deletions

View File

@@ -100,12 +100,12 @@ module.exports = {
} }
this.$set("selectedValues[this.tab - 1]", file.name); this.$set("selectedValues[this.tab - 1]", file.name);
this.loadMacrosGcode();
SvelteComponents.showDialog("Upload", { SvelteComponents.showDialog("Upload", {
file, file,
onComplete: () => { onComplete: () => {
this.last_file_time = undefined; // Force reload this.last_file_time = undefined; // Force reload
this.loadMacrosGcode();
}, },
}); });
}, },

View File

@@ -31,12 +31,13 @@ script#macros-template(type="text/x-template")
|  Selected |  Selected
h1 Macros Configuration h1 Macros Configuration
button.pure-button(title="Reset Macros", @click="confirmReset=true", .select-upload-gcode
style="height:50px;width:170px;font-weight:normal;color:#fff;background-color:#5a9ad7;display:flex;align-items:center;justify-content:space-around") Reset Macros button.pure-button(title="Reset Macros", @click="confirmReset=true",
.fa.fa-rotate-right style="height:50px;width:170px;font-weight:normal;color:#fff;background-color:#5a9ad7;display:flex;align-items:center;justify-content:space-around") Reset Macros
button.pure-button(title="Delete Macros GCodes",@click="deleteMacros = true", .fa.fa-rotate-right
:disabled="!state.selected",style="height:50px;width:170px;font-weight:normal;color:#fff;background-color:#5a9ad7;display:flex;align-items:center;justify-content:space-around:margin-left: 0.1rem") Delete GCode button.pure-button(title="Delete Macros GCodes",@click="deleteGCode = true",
.fa.fa-trash :disabled="!state.selected",style="height:50px;width:170px;font-weight:normal;color:#fff;background-color:#5a9ad7;display:flex;align-items:center;justify-content:space-around:margin-left:") Delete GCode
.fa.fa-trash
.warning-box .warning-box
p p
u Note: u Note:
@@ -70,8 +71,8 @@ script#macros-template(type="text/x-template")
.macros-form .macros-form
p.title Name p.title Name
.input-container .input-container
input.input-color(type="color",id="macros-color-0",value="getMacrosData('color')") input.input-color(type="color",id="macros-color-0",v-model="getMacrosData('color')")
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-0" value="getMacrosData('name')") input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-0" v-model="getMacrosData('name')")
p.title G-Code p.title G-Code
.select-upload-gcode .select-upload-gcode
select#gcodeSelect-0(title="Select previously uploaded GCode programs.",selected select#gcodeSelect-0(title="Select previously uploaded GCode programs.",selected