disabling button
This commit is contained in:
@@ -241,6 +241,11 @@ module.exports = new Vue({
|
|||||||
if(this.config.motors[2]['axis'] == 'Y') return false;
|
if(this.config.motors[2]['axis'] == 'Y') return false;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
enable_rotary: function() {
|
||||||
|
if(this.config.motors[2]['axis'] == 'Y' || this.config.motors[2]['axis'] == 'A') return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
ready: function() {
|
ready: function() {
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ html(lang="en")
|
|||||||
.whitespace
|
.whitespace
|
||||||
|
|
||||||
div
|
div
|
||||||
button.rotary-button(:class="is_rotary_active && 'active'", @click="toggle_rotary")
|
button.rotary-button(:disabled="!enable_rotary", :class="is_rotary_active && 'active'", @click="toggle_rotary")
|
||||||
img(src="/images/rotary.svg", alt="rotary", style="width:90%;")
|
img(src="/images/rotary.svg", alt="rotary", style="width:90%;")
|
||||||
|
|
||||||
.video(title="Plug camera into USB.\n" +
|
.video(title="Plug camera into USB.\n" +
|
||||||
|
|||||||
@@ -110,7 +110,16 @@ tt
|
|||||||
|
|
||||||
&.active
|
&.active
|
||||||
border 1px solid #54ed54
|
border 1px solid #54ed54
|
||||||
fill #ccffcb !important
|
background #ccffcb
|
||||||
|
|
||||||
|
&:focus
|
||||||
|
outline none
|
||||||
|
box-shadow none
|
||||||
|
|
||||||
|
&.disabled
|
||||||
|
opacity 0.5
|
||||||
|
background #e0e0e0
|
||||||
|
cursor not-allowed
|
||||||
|
|
||||||
.video
|
.video
|
||||||
position relative
|
position relative
|
||||||
|
|||||||
Reference in New Issue
Block a user