mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
DEV: add CSS class for composer action
This CSS class can be used to style specific composer actions
This commit is contained in:
parent
179335b5e3
commit
de5ef5d895
@ -33,6 +33,7 @@ export default Component.extend(KeyEnterEscape, {
|
||||
"composer.creatingPrivateMessage:private-message",
|
||||
"composeState",
|
||||
"composer.loading",
|
||||
"prefixedComposerAction",
|
||||
"composer.canEditTitle:edit-title",
|
||||
"composer.createdPost:created-post",
|
||||
"composer.creatingTopic:topic",
|
||||
@ -42,6 +43,11 @@ export default Component.extend(KeyEnterEscape, {
|
||||
"currentUserPrimaryGroupClass"
|
||||
],
|
||||
|
||||
@discourseComputed("composer.action")
|
||||
prefixedComposerAction(action) {
|
||||
return `composer-action-${action}`;
|
||||
},
|
||||
|
||||
@discourseComputed("currentUser.primary_group_name")
|
||||
currentUserPrimaryGroupClass(primaryGroupName) {
|
||||
return primaryGroupName && `group-${primaryGroupName}`;
|
||||
|
Loading…
Reference in New Issue
Block a user