Add config for XMPP notifications from-address
This commit is contained in:
parent
6acc3f2f59
commit
affb058671
@ -29,6 +29,7 @@ class Setting < RailsSettings::Base
|
|||||||
|
|
||||||
field :xmpp_default_rooms, type: :array, default: []
|
field :xmpp_default_rooms, type: :array, default: []
|
||||||
field :xmpp_autojoin_default_rooms, type: :boolean, default: false
|
field :xmpp_autojoin_default_rooms, type: :boolean, default: false
|
||||||
|
field :xmpp_notifications_from_address, type: :string, default: primary_domain
|
||||||
|
|
||||||
#
|
#
|
||||||
# Sentry
|
# Sentry
|
||||||
|
@ -45,5 +45,16 @@
|
|||||||
value: Setting.ejabberd_buddy_roster,
|
value: Setting.ejabberd_buddy_roster,
|
||||||
class: "w-full" %>
|
class: "w-full" %>
|
||||||
<% end %>
|
<% 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 %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user