Update admin notifications translatable fields
The same way we did for banners. We needed to add new translation keys so the labels are displayed in the correct language. I've kept the original `title` and `body` attributes so they can be used in other places. While backporting, we also added the original translations because they hadn't been backported yet.
This commit is contained in:
@@ -43,8 +43,8 @@ module Notifications
|
||||
|
||||
def fill_in_admin_notification_form(options = {})
|
||||
select (options[:segment_recipient] || 'All users'), from: :admin_notification_segment_recipient
|
||||
fill_in :admin_notification_title_en, with: (options[:title] || 'This is the notification title')
|
||||
fill_in :admin_notification_body_en, with: (options[:body] || 'This is the notification body')
|
||||
fill_in 'Title', with: (options[:title] || 'This is the notification title')
|
||||
fill_in 'Text', with: (options[:body] || 'This is the notification body')
|
||||
fill_in :admin_notification_link, with: (options[:link] || 'https://www.decide.madrid.es/vota')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user