WIP: laser tool support
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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]",
|
||||
|
||||
Reference in New Issue
Block a user