#21 Add PowerOFF when print is finished

This commit is contained in:
David Zingg 2020-02-29 17:16:29 +01:00
parent b5d23ef46f
commit 8b963a5cbb

View File

@ -3,12 +3,12 @@
<label class="control-label" id="mystromswitchEnergyValue">Energy 0.0Wh</label>
<button class="btn btn-primary" data-bind="click: onToggleRelayEvent, visible : onOffButtonEnabled">{{ _('Toggle Relais') }}</button>
<label class="checkbox">
<input type="checkbox" data-bind="enable: loginState.isUser(), checked: onAutomaticShutdownEnabledChanged">
<input type="checkbox" data-bind="enable: loginState.isUser(), click: onAutomaticShutdownEnabledChanged, visible :showShutdownOctopiOption">
{{ _('Shutdown Octoprint after print finishes') }}
</label>
<label class="checkbox">
<input type="checkbox" data-bind="enable: loginState.isUser(), checked: onAutomaticPowerOffEnabledChanged">
<input type="checkbox" data-bind="enable: loginState.isUser(), click: onAutomaticPowerOffEnabledChanged", visible: showPowerOffPrintFinishOption>
{{ _('Power Off Relais after print finishes') }}
</label>
</div>