WIP: laser tool support

This commit is contained in:
David Carley
2021-10-09 13:39:38 -07:00
parent 91d2f2b979
commit f22252011a
4 changed files with 80 additions and 49 deletions

View File

@@ -31,7 +31,7 @@ script#templated-input-template(type="text/x-template")
select(v-if="template.type == 'enum' || template.values", v-model="view",
:name="name", @change="change")
option(v-for="opt in template.values", :value="opt") {{opt}}
option(v-for="opt in template.values", :value="opt" :disabled="opt === '-----' ? true : false") {{opt}}
input(v-if="template.type == 'bool'", type="checkbox", v-model="view",
:name="name", @change="change")

View File

@@ -33,14 +33,13 @@ script#tool-view-template(type="text/x-template")
fieldset
templated-input(v-for="templ in template.tool", :name="$key",
:model.sync="config.tool[$key]", :template="templ",
v-if="tool_type != 'DISABLED' || $key == 'tool-type'")
v-if="$key == 'tool-type' || show_tool_settings")
label.extra(slot="extra",
v-if="$key == 'tool-enable-mode' || $key == 'tool-direction-mode'")
label.extra(slot="extra", v-if="$key == 'tool-enable-mode' || $key == 'tool-direction-mode'")
| Pin {{templ.pin}}
io-indicator(:name="$key", :state="state")
fieldset(v-if="tool_type == 'PWM SPINDLE'")
fieldset(v-if="is_pwm_spindle")
h2 PWM Spindle
templated-input(v-for="templ in template['pwm-spindle']",
:name="$key", :model.sync="config['pwm-spindle'][$key]",