Skip to content

A platform for community discussion. Free, open, simple.

FIX: Don't downcase "all groups" in dropdown

Gerhard Schlager9c8645b9e138
diff --git a/app/assets/javascripts/discourse/tests/acceptance/group-test.js b/app/assets/javascripts/discourse/tests/acceptance/group-test.js
index 93a949fc4f3..7f1dbd5ea10 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/group-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/group-test.js
@@ -62,7 +62,7 @@ acceptance("Group - Anonymous", function (needs) {
assert.equal(
groupDropdown.rowByIndex(0).name(),
- I18n.t("groups.index.all").toLowerCase()
+ I18n.t("groups.index.all")
);
this.siteSettings.enable_group_directory = false;
diff --git a/app/assets/javascripts/select-kit/addon/components/group-dropdown.js b/app/assets/javascripts/select-kit/addon/components/group-dropdown.js
index 365f8c5ad09..a0a12c1a70a 100644
--- a/app/assets/javascripts/select-kit/addon/components/group-dropdown.js
+++ b/app/assets/javascripts/select-kit/addon/components/group-dropdown.js
@@ -25,7 +25,7 @@ export default ComboBoxComponent.extend({
const shortcuts = [];
if (this.enableGroupDirectory || this.get("currentUser.staff")) {
- shortcuts.push(I18n.t("groups.index.all").toLowerCase());
+ shortcuts.push(I18n.t("groups.index.all"));
}
return shortcuts.concat(this.groups);