mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Composer actions menu header should display the icon of selected action (#12449)
See a video of the change in the PR: https://github.com/discourse/discourse/pull/12449.
This commit is contained in:
@@ -37,11 +37,19 @@ export default DropdownSelectBoxComponent.extend({
|
||||
showFullTitle: false,
|
||||
},
|
||||
|
||||
iconForComposerAction: computed("action", function () {
|
||||
iconForComposerAction: computed("action", "whisper", "noBump", function () {
|
||||
if (this.isEditing) {
|
||||
return "pencil-alt";
|
||||
} else if (this.action === CREATE_TOPIC) {
|
||||
return "plus";
|
||||
} else if (this.action === PRIVATE_MESSAGE) {
|
||||
return "envelope";
|
||||
} else if (this.action === CREATE_SHARED_DRAFT) {
|
||||
return "far-clipboard";
|
||||
} else if (this.whisper) {
|
||||
return "far-eye-slash";
|
||||
} else if (this.noBump) {
|
||||
return "anchor";
|
||||
} else {
|
||||
return "share";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user