Update icon + add command setting
Update icon to new FA icon to be compatible with octoprint 1.3.5's move to an update font awesome Add a setting to allow changing of the command in situations where the user may wish to issue some other command other than M112
This commit is contained in:
13
octoprint_estop/templates/estop_settings.jinja2
Normal file
13
octoprint_estop/templates/estop_settings.jinja2
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>{{ _('E-Stop Settings') }}</h3>
|
||||
<div>
|
||||
<p>Here you can change the command issued to your printer when you press the emergency stop button.</p>
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{ _('Emergency STOP! Command') }}</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-block" data-bind="value: settings.plugins.estop.estopCommand">
|
||||
<span class="help-block">Usually this is M112. Only change if you know what you're doing.</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -1,4 +1,4 @@
|
||||
<div id="sidebar_estop_background" class="estop_sidebar" data-bind="css: estopState">
|
||||
<button type="button" id="emergemcy_stop" title="send M112 estop gcode command" class="btn-estop" data-bind="text: buttonText, enable: enableEstop, click: function() { sendEstopCommand() }"></button>
|
||||
<button type="button" id="emergemcy_stop" class="btn-estop" data-bind="attr: { title: buttonTitle }, text: buttonText, enable: enableEstop, click: function() { sendEstopCommand() }"></button>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user