A platform for community discussion. Free, open, simple.
FIX: Show the fallback locale warning when both settings are enabled. (#11787)
Roman Rizzifb9e422bd69b
diff --git a/app/assets/javascripts/admin/addon/controllers/admin-site-text-index.js b/app/assets/javascripts/admin/addon/controllers/admin-site-text-index.jsindex c164236066e..2f2b708d172 100644--- a/app/assets/javascripts/admin/addon/controllers/admin-site-text-index.js+++ b/app/assets/javascripts/admin/addon/controllers/admin-site-text-index.js@@ -45,8 +45,8 @@ export default Controller.extend({@discourseComputed("locale")showFallbackLocaleWarning() {return (- (this.siteSettings.allow_user_locale ||- this.siteSettings.set_locale_from_accept_language_header) &&+ this.siteSettings.allow_user_locale &&+ this.siteSettings.set_locale_from_accept_language_header &&this.fallbackLocaleFullName);},