Update site customization pages translatable fields

This commit is contained in:
Javi Martín
2018-10-10 18:12:12 +02:00
parent e0b9c1bfdd
commit 3c170f47d2
8 changed files with 42 additions and 145 deletions

View File

@@ -244,7 +244,7 @@ def field_for(field, locale, visible: true)
if translatable_class.name == "I18nContent"
"contents_content_#{translatable.key}values_#{field}_#{locale}"
else
find("[data-locale='#{locale}'][id$='#{field}']", visible: visible)[:id]
find("[data-locale='#{locale}'][id$='_#{field}']", visible: visible)[:id]
end
end
@@ -296,6 +296,8 @@ def update_button_text
"Update poll"
when "Poll::Question", "Poll::Question::Answer"
"Save"
when "SiteCustomization::Page"
"Update Custom page"
when "Widget::Card"
"Save card"
else