Add current user's primary group name class to the composer body

This commit is contained in:
Régis Hanol 2017-08-12 04:06:23 +02:00
parent 19b7658dc3
commit 13e9d2867a

View File

@ -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) {