diff --git a/src/js/macros.js b/src/js/macros.js index cf8994d..f7a4ed4 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -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]; diff --git a/src/pug/templates/macros.pug b/src/pug/templates/macros.pug index 459c62f..32bd61a 100644 --- a/src/pug/templates/macros.pug +++ b/src/pug/templates/macros.pug @@ -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