Add switch for connected devices [SCI-8112] (#5179)

This commit is contained in:
ajugo 2023-03-22 12:15:01 +01:00 committed by GitHub
parent 8eb04c50c2
commit fe37699ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -38,10 +38,12 @@
</div>
</div>
<!-- Manage devices -->
<div class="manage-devices">
<%= render partial: 'users/registrations/manage_devices' %>
<div>
<% if Rails.application.config.x.connected_devices_enabled %>
<!-- Manage devices -->
<div class="manage-devices">
<%= render partial: 'users/registrations/manage_devices' %>
<div>
<% end %>
<!-- User statistics -->
<div class="row">

View file

@ -57,6 +57,8 @@ module Scinote
config.x.webhooks_enabled = ENV['ENABLE_WEBHOOKS'] == 'true'
config.x.connected_devices_enabled = ENV['CONNECTED_DEVICES_ENABLED'] == 'true'
# Logging
config.log_formatter = proc do |severity, datetime, progname, msg|
"[#{datetime}] #{severity}: #{msg}\n"