Hide Tool section in Control for machines with no extruders. Such as Lasers.
This commit is contained in:
1 parent
3e16f0901a
commit
1b5a654a2d
2 files changed
+3
-1
No files matched your search
@@ -26,6 +26,7 @@ $(function() {
|
||||
self.distances = ko.observableArray([0.1, 1, 10, 100]);
|
||||
self.distance = ko.observable(10);
|
||||
|
||||
self.showTools = ko.observable(true);
|
||||
self.tools = ko.observableArray([]);
|
||||
|
||||
self.feedRate = ko.observable(100);
|
||||
@@ -79,6 +80,7 @@ $(function() {
|
||||
tools[0]["key"]("tool0");
|
||||
}
|
||||
|
||||
self.showTools(numExtruders > 0);
|
||||
self.tools(tools);
|
||||
};
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- Extrusion control panel -->
|
||||
<div id="control-jog-extrusion" class="jog-panel" style="display: none;" data-bind="visible: loginState.isUser">
|
||||
<div id="control-jog-extrusion" class="jog-panel" style="display: none;" data-bind="visible: loginState.isUser && showTools">
|
||||
<h1>Tool (E)</h1>
|
||||
<div>
|
||||
<div class="btn-group control-box">
|
||||
|
||||
Reference in new issue
Block a user