set cancel color to white, adding reset icon,
This commit is contained in:
@@ -104,7 +104,7 @@ module.exports = {
|
||||
},
|
||||
cancelMacros: function (id) {
|
||||
document.getElementById(`macros-name-${id}`).value = '';
|
||||
document.getElementById(`macros-color-${id}`).value = '';
|
||||
document.getElementById(`macros-color-${id}`).value = '#fff';
|
||||
},
|
||||
resetConfig: async function () {
|
||||
this.config.macros = [
|
||||
|
||||
@@ -2,7 +2,8 @@ script#macros-template(type="text/x-template")
|
||||
#macros
|
||||
h1 Macros Configuration
|
||||
button.pure-button(title="Print config.", @click="resetConfig",
|
||||
style="height:50px;width:120px;font-weight:normal;padding-vertical:5px;background-color:#5a9ad7") Reset Macros
|
||||
style="height:50px;width:120px;font-weight:normal;color:#fff;background-color:#5a9ad7") Reset Macros
|
||||
fa.fa-rotate-right
|
||||
.warning-box
|
||||
p
|
||||
u Note:
|
||||
@@ -48,8 +49,8 @@ script#macros-template(type="text/x-template")
|
||||
gcode-viewer
|
||||
button.submit-macros(title="Save Macros",@click="saveMacros(0)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
||||
button.submit-macros(title="Save Macros",@click="cancelMacros(0)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros(0)",
|
||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
|
||||
section#content2.tab-content
|
||||
.macros-form
|
||||
@@ -73,8 +74,8 @@ script#macros-template(type="text/x-template")
|
||||
gcode-viewer
|
||||
button.submit-macros(title="Save Macros",@click="saveMacros(1)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
||||
button.submit-macros(title="Save Macros",@click="cancelMacros(1)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros(1)",
|
||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
|
||||
section#content3.tab-content
|
||||
.macros-form
|
||||
@@ -98,8 +99,8 @@ script#macros-template(type="text/x-template")
|
||||
gcode-viewer
|
||||
button.submit-macros(title="Save Macros",@click="saveMacros(2)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
||||
button.submit-macros(title="Save Macros",@click="cancelMacros(2)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros(2)",
|
||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
|
||||
section#content4.tab-content
|
||||
.macros-form
|
||||
@@ -123,8 +124,8 @@ script#macros-template(type="text/x-template")
|
||||
gcode-viewer
|
||||
button.submit-macros(title="Save Macros",@click="saveMacros(3)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
||||
button.submit-macros(title="Save Macros",@click="cancelMacros(3)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros(3)",
|
||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
|
||||
section#content5.tab-content
|
||||
.macros-form
|
||||
@@ -148,8 +149,8 @@ script#macros-template(type="text/x-template")
|
||||
gcode-viewer
|
||||
button.submit-macros(title="Save Macros",@click="saveMacros(4)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
||||
button.submit-macros(title="Save Macros",@click="cancelMacros(4)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros(4)",
|
||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
|
||||
section#content6.tab-content
|
||||
.macros-form
|
||||
@@ -173,5 +174,5 @@ script#macros-template(type="text/x-template")
|
||||
gcode-viewer
|
||||
button.submit-macros(title="Save Macros",@click="saveMacros(5)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border:0;margin-top:30px") Save
|
||||
button.submit-macros(title="Save Macros",@click="cancelMacros(5)",
|
||||
style="height:50px;width:140px;font-weight:normal;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
button.submit-macros(title="Cancel Macros",@click="cancelMacros(5)",
|
||||
style="height:50px;width:140px;font-weight:normal;margin-left:5px;background-color:#f6f6f6;color:#000;border:0;margin-top:30px") Cancel
|
||||
|
||||
@@ -531,7 +531,7 @@ span.unit
|
||||
white-space nowrap
|
||||
|
||||
.tabs
|
||||
padding-top 40px
|
||||
padding-top 10px
|
||||
|
||||
section
|
||||
min-height 500px
|
||||
@@ -636,6 +636,7 @@ span.unit
|
||||
border-radius 10px
|
||||
border 0
|
||||
padding 4px
|
||||
margin-vertical 5px
|
||||
|
||||
.tabs
|
||||
margin-top 5px
|
||||
@@ -650,7 +651,6 @@ span.unit
|
||||
border 0
|
||||
|
||||
|
||||
|
||||
.path-viewer
|
||||
table
|
||||
margin 0.25em
|
||||
|
||||
Reference in New Issue
Block a user