UX: Better composer-action icon when creating new topic.

This commit is contained in:
Guo Xiang Tan 2020-05-15 16:40:49 +08:00
parent f9a9bd136b
commit dada1fc417
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 7 additions and 1 deletions

View File

@ -35,7 +35,13 @@ export default DropdownSelectBoxComponent.extend({
},
iconForComposerAction: computed("action", function() {
return this.isEditing ? "pencil-alt" : "share";
if (this.isEditing) {
return "pencil-alt";
} else if (this.action == CREATE_TOPIC) {
return "plus";
} else {
return "share";
}
}),
contentChanged() {