A platform for community discussion. Free, open, simple.
UX: group names shouldn't always be capitalized (#25820)
Kris59fccfc4a1e1
diff --git a/app/assets/javascripts/discourse/app/controllers/group.js b/app/assets/javascripts/discourse/app/controllers/group.jsindex 5a0c42e4be7..e5660e7d369 100644--- a/app/assets/javascripts/discourse/app/controllers/group.js+++ b/app/assets/javascripts/discourse/app/controllers/group.js@@ -1,7 +1,6 @@import Controller, { inject as controller } from "@ember/controller";import EmberObject, { action } from "@ember/object";import { inject as service } from "@ember/service";-import { capitalize } from "@ember/string";import GroupDeleteDialog from "discourse/components/dialog-messages/group-delete";import discourseComputed from "discourse-common/utils/decorators";import I18n from "discourse-i18n";@@ -110,11 +109,6 @@ export default Controller.extend({return isGroupUser || (this.currentUser && this.currentUser.admin);},- @discourseComputed("model.displayName", "model.full_name")- groupName(displayName, fullName) {- return capitalize(fullName || displayName);- },-@discourseComputed("model.messageable")displayGroupMessageButton(messageable) {return this.currentUser && messageable;diff --git a/app/assets/javascripts/discourse/app/templates/group.hbs b/app/assets/javascripts/discourse/app/templates/group.hbsindex 1a7b2d50817..dca9f2c22c9 100644--- a/app/assets/javascripts/discourse/app/templates/group.hbs+++ b/app/assets/javascripts/discourse/app/templates/group.hbs@@ -31,11 +31,15 @@{{/if}}<div class="group-info-names">- <span class="group-info-name">{{this.groupName}}</span>+ <span class="group-info-name">+ {{or this.model.full_name this.model.name}}+ </span>- {{#if this.model.full_name}}<div- class="group-info-full-name"- >{{this.model.name}}</div>{{/if}}+ {{#if this.model.full_name}}+ <div class="group-info-full-name">+ {{this.model.name}}+ </div>+ {{/if}}</div><div class="group-details-button">