Merge pull request #3475 from artoscinote/ma_SCI_5979

Fix disabled refresh printers button [SCI-5979]
This commit is contained in:
artoscinote 2021-08-11 13:22:51 +02:00 committed by GitHub
commit 67330ab27f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@
<div class="update-printers">
<%= form_with scope: :label_printer, url: create_fluics_label_printers_path do |form| %>
<%= form.hidden_field :fluics_api_key, value: @fluics_api_key %>
<%= button_tag type: 'submit', class: "btn btn-light", disabled: @fluics_api_key.present?.to_s do %>
<%= button_tag type: 'submit', class: "btn btn-light", disabled: @fluics_api_key.blank? do %>
<i class="fas fa-sync"></i>
<%= t("users.settings.account.label_printer.update_printers") %>
<% end %>