mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Add switch for connected devices [SCI-8112] (#5179)
This commit is contained in:
parent
8eb04c50c2
commit
fe37699ba5
2 changed files with 8 additions and 4 deletions
|
@ -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">
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue