Add config for XMPP notifications from-address

This commit is contained in:
Râu Cao 2023-06-21 16:44:06 +02:00
parent 6acc3f2f59
commit affb058671
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
2 changed files with 12 additions and 0 deletions

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>