updated to reflect change in OctoPrint core
This commit is contained in:
parent
7a6877e709
commit
e626a18676
@ -87,8 +87,7 @@
|
|||||||
<script type="text/html" id="settingsCustomControls_controlTemplate">
|
<script type="text/html" id="settingsCustomControls_controlTemplate">
|
||||||
<form class="form-inline custom_control" style="min-height:15px; border:1px dotted #000000" data-bind="contextMenu: { menuSelector: '#commandContextMenu', menuSelected: $root.controlContextMenu }, css: { 'sortable': $parent.layout() != 'horizontal_grid' }, attr: { 'id': id }">
|
<form class="form-inline custom_control" style="min-height:15px; border:1px dotted #000000" data-bind="contextMenu: { menuSelector: '#commandContextMenu', menuSelected: $root.controlContextMenu }, css: { 'sortable': $parent.layout() != 'horizontal_grid' }, attr: { 'id': id }">
|
||||||
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_input', data: $data, if: $data.hasOwnProperty('input') } --><!-- /ko -->
|
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_input', data: $data, if: $data.hasOwnProperty('input') } --><!-- /ko -->
|
||||||
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_command', data: $data, if: !$data.hasOwnProperty('customClass') && ($data.hasOwnProperty('command') || $data.hasOwnProperty('commands') || $data.hasOwnProperty('script') || $data.hasOwnProperty('javascript')) } --><!-- /ko -->
|
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_command', data: $data, if: $data.hasOwnProperty('command') || $data.hasOwnProperty('commands') || $data.hasOwnProperty('script') || $data.hasOwnProperty('javascript') } --><!-- /ko -->
|
||||||
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_command_customClass', data: $data, if: $data.hasOwnProperty('customClass') && ($data.hasOwnProperty('command') || $data.hasOwnProperty('commands') || $data.hasOwnProperty('script') || $data.hasOwnProperty('javascript')) } --><!-- /ko -->
|
|
||||||
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_output', data: $data, if: $data.hasOwnProperty('value') } --><!-- /ko -->
|
<!-- ko template: { name: 'settingsCustomControls_controlTemplate_output', data: $data, if: $data.hasOwnProperty('value') } --><!-- /ko -->
|
||||||
</form>
|
</form>
|
||||||
</script>
|
</script>
|
||||||
@ -107,9 +106,11 @@
|
|||||||
<label style="cursor: default" data-bind="text: value"></label>
|
<label style="cursor: default" data-bind="text: value"></label>
|
||||||
</script>
|
</script>
|
||||||
<script type="text/html" id="settingsCustomControls_controlTemplate_command">
|
<script type="text/html" id="settingsCustomControls_controlTemplate_command">
|
||||||
<button class="btn" data-bind="text: name" onclick="event.preventDefault()"></button>
|
<!-- ko if: $data.customClass -->
|
||||||
</script>
|
<button data-bind="text: name, attr: { 'class': customClass }" onclick="event.preventDefault()"></button>
|
||||||
<script type="text/html" id="settingsCustomControls_controlTemplate_command_customClass">
|
<!-- /ko -->
|
||||||
<button data-bind="text: name, attr: { 'class': customClass }" onclick="event.preventDefault()"></button>
|
<!-- ko ifnot: $data.customClass -->
|
||||||
|
<button class="btn" data-bind="text: name" onclick="event.preventDefault()"></button>
|
||||||
|
<!-- /ko -->
|
||||||
</script>
|
</script>
|
||||||
<!-- End of templates for custom controls -->
|
<!-- End of templates for custom controls -->
|
||||||
|
Loading…
Reference in New Issue
Block a user