Allow editing and resetting of all admin setting strings #137

Merged
greg merged 3 commits from feature/admin_settings into master 2023-06-24 14:57:09 +00:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit affb058671 - Show all commits

View File

@ -29,6 +29,7 @@ class Setting < RailsSettings::Base
field :xmpp_default_rooms, type: :array, default: []
field :xmpp_autojoin_default_rooms, type: :boolean, default: false
field :xmpp_notifications_from_address, type: :string, default: primary_domain
#
# Sentry

View File

@ -45,5 +45,16 @@
value: Setting.ejabberd_buddy_roster,
class: "w-full" %>
<% end %>
</ul>
<h3 class="mt-10">Notifications</h3>
<ul role="list">
<%= render FormElements::FieldsetComponent.new(
title: "From address",
description: "Address (JID) of the account notifications are sent from",
) do %>
<%= f.text_field :xmpp_notifications_from_address,
value: Setting.xmpp_notifications_from_address,
class: "w-full" %>
<% end %>
<% end %>
</ul>