removed download macros in macros page
This commit is contained in:
@@ -56,12 +56,6 @@ module.exports = {
|
||||
initial_tab: function () {
|
||||
return this.tab == 0;
|
||||
},
|
||||
download_macros_url: function () {
|
||||
return "/api/macros/download/" + this.state.macros_list.map(item => item.file_name).join(",");
|
||||
},
|
||||
can_download_macros: function () {
|
||||
return this.state.macros_list.length;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
open: function () {
|
||||
@@ -101,6 +95,11 @@ module.exports = {
|
||||
});
|
||||
},
|
||||
|
||||
printconfig: function () {
|
||||
console.log(this.state);
|
||||
console.log(this.config);
|
||||
},
|
||||
|
||||
update_config: function () {
|
||||
this.config.gcode_list = [...this.state.gcode_list];
|
||||
this.config.non_macros_list = [...this.state.non_macros_list];
|
||||
|
||||
@@ -73,8 +73,8 @@ script#macros-template(type="text/x-template")
|
||||
.fa.fa-trash
|
||||
| Yes
|
||||
|
||||
a(download, title="Download Macros", :href="can_download_macros? download_macros_url : null", style="text-decoration: none;")
|
||||
button.config-button.button-blue(style="width:160px;") Download Macros
|
||||
|
||||
button.config-button.button-blue(style="width:160px;", @click="printconfig") Print Config
|
||||
|
||||
.warning-box
|
||||
p
|
||||
|
||||
Reference in New Issue
Block a user