Skip to content

Commit

Permalink
🐛 Actually fix the alert for read only
Browse files Browse the repository at this point in the history
Tested, unlike last time...
  • Loading branch information
cp2004 committed Jun 2, 2021
1 parent 58fc69a commit 673bc61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_eeprom_marlin/templates/alerts/printer.jinja2
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="alert alert-block" data-bind="visible: !loading() && !saving() && !enable_fields() && !initialLoad() && info.name() && info.is_marlin()">
<p><strong>Read-only mode</strong></p>
<!-- ko if: loginState.hasPermission(access.permissions.PLUGIN_EEPROM_MARLIN_READ) && loginState.hasPermission(access.permissions.PLUGIN_EEPROM_MARLIN_WRITE) -->
<!-- ko if: loginState.hasAllPermissionsKo(access.permissions.PLUGIN_EEPROM_MARLIN_READ, access.permissions.PLUGIN_EEPROM_MARLIN_EDIT) -->
<p>
{{ _("Printer is currently") }}
<span data-bind="text: printerState.isBusy() ? '{{ _("printing") }}' : '{{ _("disconnected") }}'"></span>
{{ _("so EEPROM configuration is disabled. Editor is in read-only mode") }}
</p>
<!-- /ko -->
<!-- ko if loginState.hasPermission(access.permissions.PLUGIN_EEPROM_MARLIN_READ) && !loginState.hasPermission(access.permissions.PLUGIN_EEPROM_MARLIN_WRITE) -->
<!-- ko if: loginState.hasPermissionKo(access.permissions.PLUGIN_EEPROM_MARLIN_READ)() && !loginState.hasPermissionKo(access.permissions.PLUGIN_EEPROM_MARLIN_EDIT)() -->
<p>
{{ _("Your account does not have permission to edit the EEPROM settings.") }}
</p>
Expand Down

0 comments on commit 673bc61

Please sign in to comment.