We had Prettier pinned because of https://github.com/prettier/prettier/issues/5529. Since that bug is fixed, unpinning. Prettier now supports YAML, so this applies Prettier to all .yml except for translations, which should not be edited directly anyway.
38 lines
932 B
JavaScript
38 lines
932 B
JavaScript
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: "",
|
|
|
|
@computed("composeState")
|
|
toggleTitle(composeState) {
|
|
return composeState === "draft" || composeState === "saving"
|
|
? "composer.abandon"
|
|
: "composer.collapse";
|
|
},
|
|
|
|
@computed("composeState")
|
|
fullscreenTitle(composeState) {
|
|
return composeState === "draft"
|
|
? "composer.open"
|
|
: composeState === "fullscreen"
|
|
? "composer.exit_fullscreen"
|
|
: "composer.enter_fullscreen";
|
|
},
|
|
|
|
@computed("composeState")
|
|
toggleIcon(composeState) {
|
|
return composeState === "draft" || composeState === "saving"
|
|
? "times"
|
|
: "chevron-down";
|
|
},
|
|
|
|
@computed("composeState")
|
|
fullscreenIcon(composeState) {
|
|
return composeState === "draft"
|
|
? "chevron-up"
|
|
: composeState === "fullscreen"
|
|
? "discourse-compress"
|
|
: "discourse-expand";
|
|
}
|
|
});
|