testing alert for upload gcode
This commit is contained in:
@@ -47,10 +47,12 @@ module.exports = {
|
|||||||
return this.tab > 8;
|
return this.tab > 8;
|
||||||
},
|
},
|
||||||
macros_gcode_list: function () {
|
macros_gcode_list: function () {
|
||||||
return this.config.macros_list
|
return (
|
||||||
.filter(item => this.state.files.includes(item.file_name))
|
this.config.macros_list
|
||||||
|
// .filter(item => this.state.files.includes(item.file_name))
|
||||||
.map(item => item.file_name)
|
.map(item => item.file_name)
|
||||||
.sort();
|
.sort()
|
||||||
|
);
|
||||||
},
|
},
|
||||||
macros_list: function () {
|
macros_list: function () {
|
||||||
return this.config.macros.map(item => item.name);
|
return this.config.macros.map(item => item.name);
|
||||||
@@ -105,6 +107,7 @@ module.exports = {
|
|||||||
const response = await fetch(`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${file}`, {
|
const response = await fetch(`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${file}`, {
|
||||||
cache: "no-cache",
|
cache: "no-cache",
|
||||||
});
|
});
|
||||||
|
console.log("response", response);
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
this.newGcode = text;
|
this.newGcode = text;
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ script#macros-template(type="text/x-template")
|
|||||||
p.title Macro Name
|
p.title Macro Name
|
||||||
.input-container
|
.input-container
|
||||||
input.input-color(type="color",id="macros-color",value="#ffffff",@change="editedColor")
|
input.input-color(type="color",id="macros-color",value="#ffffff",@change="editedColor")
|
||||||
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name" ,v-model="macrosName",@keypress="editedName")
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name" ,v-model="macrosName",@keydown="editedName")
|
||||||
div
|
div
|
||||||
input.input-alert(type="checkbox",id="macros-alert" v-model="isChecked",@change="editedAlert")
|
input.input-alert(type="checkbox",id="macros-alert" v-model="isChecked",@change="editedAlert")
|
||||||
label Would you like an alert when running this macro?
|
label Would you like an alert when running this macro?
|
||||||
|
|||||||
Reference in New Issue
Block a user