switch for navbar (#33)

This commit is contained in:
thelastWallE 2021-02-09 23:45:17 +01:00 committed by GitHub
parent f5d533865d
commit 32d08946b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -75,7 +75,8 @@ class KlipperPlugin(
configuration = dict(
configpath="~/printer.cfg",
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">
<input type="checkbox" class="input-block-level" data-bind="checked: settings.settings.plugins.klipper.connection.replace_connection_panel">
</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 class="control-group">
<label class="control-label">{{ _('Klipper Config Path') }}</label>