UX: Remove confusing fallback locale warning (#18096)

This commit is contained in:
Gerhard Schlager
2022-08-26 01:22:04 +02:00
committed by GitHub
parent 9d9c48fcb8
commit ec93bca99e
3 changed files with 33 additions and 23 deletions
@@ -42,21 +42,11 @@ export default Controller.extend({
}
},
@discourseComputed("locale")
showFallbackLocaleWarning() {
return (
this.siteSettings.allow_user_locale &&
this.siteSettings.set_locale_from_accept_language_header &&
this.fallbackLocaleFullName
);
},
actions: {
edit(siteText) {
this.transitionToRoute("adminSiteText.edit", siteText.get("id"), {
queryParams: {
locale: this.locale,
localeFullName: this.availableLocales[this.locale],
},
});
},