FIX: Don't downcase "all groups" in dropdown
Because this doesn't make sense in languages other than English
This commit is contained in:
parent
6805cc287e
commit
9c8645b9e1
|
@ -62,7 +62,7 @@ acceptance("Group - Anonymous", function (needs) {
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
groupDropdown.rowByIndex(0).name(),
|
groupDropdown.rowByIndex(0).name(),
|
||||||
I18n.t("groups.index.all").toLowerCase()
|
I18n.t("groups.index.all")
|
||||||
);
|
);
|
||||||
|
|
||||||
this.siteSettings.enable_group_directory = false;
|
this.siteSettings.enable_group_directory = false;
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default ComboBoxComponent.extend({
|
||||||
const shortcuts = [];
|
const shortcuts = [];
|
||||||
|
|
||||||
if (this.enableGroupDirectory || this.get("currentUser.staff")) {
|
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);
|
return shortcuts.concat(this.groups);
|
||||||
|
|
Loading…
Reference in New Issue