max-velocity changed, ui cond. rendering fixed
This commit is contained in:
@@ -325,10 +325,10 @@ module.exports = new Vue({
|
|||||||
let motor = this.config.motors[2];
|
let motor = this.config.motors[2];
|
||||||
if(motor['axis'] == 'A'){
|
if(motor['axis'] == 'A'){
|
||||||
motor['axis'] = 'Y';
|
motor['axis'] = 'Y';
|
||||||
this.config.motors[1]['max-velocity'] /= 2;
|
this.config.motors[1]['max-velocity'] *= 2;
|
||||||
} else {
|
} else {
|
||||||
motor['axis'] = 'A';
|
motor['axis'] = 'A';
|
||||||
this.config.motors[1]['max-velocity'] *= 2;
|
this.config.motors[1]['max-velocity'] /= 2;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await api.put("config/save", this.config);
|
await api.put("config/save", this.config);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ script#control-view-template(type="text/x-template")
|
|||||||
button(:style="getJogIncrStyle('large')", @click="jog_incr = 'large'")
|
button(:style="getJogIncrStyle('large')", @click="jog_incr = 'large'")
|
||||||
span {{jog_incr_amounts[display_units].large}}#[span.jog-units {{metric ? 'mm' : 'in'}}]
|
span {{jog_incr_amounts[display_units].large}}#[span.jog-units {{metric ? 'mm' : 'in'}}]
|
||||||
|
|
||||||
tr(v-if="is_rotary_active")
|
tr(v-if="config.motors[2]['axis'] == 'A'")
|
||||||
td(style="height:100px", align="center", colspan="2")
|
td(style="height:100px", align="center", colspan="2")
|
||||||
button(@click="console.log('button pressed: Probe Rotary')")
|
button(@click="console.log('button pressed: Probe Rotary')")
|
||||||
| Probe Rotary
|
| Probe Rotary
|
||||||
|
|||||||
Reference in New Issue
Block a user