diff --git a/app/assets/javascripts/discourse/components/composer-body.js.es6 b/app/assets/javascripts/discourse/components/composer-body.js.es6 index 1078c2d7ef9..1d193b52575 100644 --- a/app/assets/javascripts/discourse/components/composer-body.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-body.js.es6 @@ -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) {