UX: better help text for composer collapse / discard

also: warn on collapsed close if you are to discard content
This commit is contained in:
Sam
2017-11-30 12:28:00 +11:00
parent 0d34caff85
commit bf1f6c7fe4
5 changed files with 22 additions and 15 deletions
@@ -3,6 +3,14 @@ import computed from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
tagName: '',
@computed('composeState')
title(composeState) {
if (composeState === "draft" || composeState === "saving") {
return "composer.abandon";
}
return "composer.collapse";
},
@computed('composeState')
toggleIcon(composeState) {
if (composeState === "draft" || composeState === "saving") {