switch for navbar (#33)
This commit is contained in:
parent
f5d533865d
commit
d6cbf8d867
|
@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 -->
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue