mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 11:41:45 +08:00

Adds a new SVG sprite file that contains non-FontAwesome 5 icons to our subset. Adds the FontAwesome 4.7.0 icons for expand / collapse.
34 lines
821 B
JavaScript
34 lines
821 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 === "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 === "fullscreen"
|
|
? "discourse-compress"
|
|
: "discourse-expand";
|
|
}
|
|
});
|