diff --git a/decidim-core/app/commands/decidim/update_notifications_settings.rb b/decidim-core/app/commands/decidim/update_notifications_settings.rb index f3679d57921b0..1d504d0fb62d9 100644 --- a/decidim-core/app/commands/decidim/update_notifications_settings.rb +++ b/decidim-core/app/commands/decidim/update_notifications_settings.rb @@ -28,6 +28,7 @@ def update_notifications_settings @user.notification_types = @form.notification_types @user.direct_message_types = @form.direct_message_types @user.email_on_moderations = @form.email_on_moderations + @user.email_on_assigned_proposals = @form.email_on_assigned_proposals @user.notification_settings = @user.notification_settings.merge(@form.notification_settings) @user.notifications_sending_frequency = @form.notifications_sending_frequency end diff --git a/decidim-core/app/forms/decidim/notifications_settings_form.rb b/decidim-core/app/forms/decidim/notifications_settings_form.rb index 32e5e2948cab3..7cf18c0fc2d4c 100644 --- a/decidim-core/app/forms/decidim/notifications_settings_form.rb +++ b/decidim-core/app/forms/decidim/notifications_settings_form.rb @@ -7,6 +7,7 @@ class NotificationsSettingsForm < Form mimic :user attribute :email_on_moderations, Boolean + attribute :email_on_assigned_proposals, Boolean attribute :newsletter_notifications, Boolean attribute :notifications_from_followed, Boolean attribute :notifications_from_own_activity, Boolean diff --git a/decidim-core/app/views/decidim/notifications_settings/show.html.erb b/decidim-core/app/views/decidim/notifications_settings/show.html.erb index e325687653adc..c96315ffdb059 100644 --- a/decidim-core/app/views/decidim/notifications_settings/show.html.erb +++ b/decidim-core/app/views/decidim/notifications_settings/show.html.erb @@ -99,6 +99,28 @@ + +
+ +
+ <% if current_user.moderator? %>