Add current user's primary group name class to the composer body
This commit is contained in:
parent
19b7658dc3
commit
13e9d2867a
|
@ -14,7 +14,13 @@ export default Ember.Component.extend(KeyEnterEscape, {
|
|||
'composer.canEditTitle:edit-title',
|
||||
'composer.createdPost:created-post',
|
||||
'composer.creatingTopic:topic',
|
||||
'composer.whisper:composing-whisper'],
|
||||
'composer.whisper:composing-whisper',
|
||||
'currentUserPrimaryGroupClass'],
|
||||
|
||||
@computed("currentUser.primary_group_name")
|
||||
currentUserPrimaryGroupClass(primaryGroupName) {
|
||||
return primaryGroupName && `group-${primaryGroupName}`;
|
||||
},
|
||||
|
||||
@computed('composer.composeState')
|
||||
composeState(composeState) {
|
||||
|
|
Loading…
Reference in New Issue