switch for navbar (#33)

This commit is contained in:
thelastWallE 2021-02-09 23:45:17 +01:00
parent f5d533865d
commit d6cbf8d867
3 changed files with 10 additions and 2 deletions

View File

@ -75,7 +75,8 @@ class KlipperPlugin(
configuration = dict( configuration = dict(
configpath="~/printer.cfg", configpath="~/printer.cfg",
logpath="/tmp/klippy.log", logpath="/tmp/klippy.log",
reload_command="RESTART" reload_command="RESTART",
navbar=True
) )
) )

View File

@ -1 +1,3 @@
<a data-bind="text: shortStatus, click: navbarClicked"></a> <!-- ko if: settings.settings.plugins.klipper.configuration.navbar -->
<a data-bind="text: shortStatus, click: navbarClicked"></a>
<!-- /ko -->

View File

@ -19,6 +19,11 @@
<div class="controls"> <div class="controls">
<input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.connection.replace_connection_panel"> <input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.connection.replace_connection_panel">
</div> </div>
</div><div class="control-group">
<label class="control-label">{{ _('Show NavBar Message') }}</label>
<div class="controls">
<input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.configuration.navbar">
</div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">{{ _('Klipper Config Path') }}</label> <label class="control-label">{{ _('Klipper Config Path') }}</label>