UX: Capitalize group name.

This commit is contained in:
Guo Xiang Tan 2016-11-29 12:37:40 +08:00
parent d95fbd89d0
commit dfc383a948
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,6 @@ var Tab = Em.Object.extend({
}
});
export default Ember.Controller.extend({
counts: null,
showing: 'members',
@ -24,6 +23,11 @@ export default Ember.Controller.extend({
Tab.create({ name: 'messages', requiresMembership: true })
],
@computed('model.name')
groupName(name) {
return name.capitalize();
},
@observes('counts')
countsChanged() {
const counts = this.get('counts');

View File

@ -17,7 +17,7 @@
<section class='user-right groups'>
<section class='about group'>
<div class='details'>
<h1>{{model.name}}</h1>
<h1>{{groupName}}</h1>
</div>
</section>
{{outlet}}