2019-11-20 13:08:04 +01:00
|
|
|
import { default as computed, observes } from 'ember-addons/ember-computed-decorators';
|
2018-02-08 05:30:55 +01:00
|
|
|
|
|
|
|
export default Ember.Component.extend({
|
2019-11-20 13:08:04 +01:00
|
|
|
showPreview: false,
|
|
|
|
elementId: "reply-control",
|
|
|
|
classNameBindings: ["showPreview:show-preview:hide-preview"],
|
|
|
|
|
|
|
|
didInsertElement() {
|
|
|
|
this.set('composer', Ember.Object.create({
|
|
|
|
loading: false,
|
|
|
|
reply: this.get('field.value')
|
|
|
|
}))
|
|
|
|
},
|
|
|
|
|
|
|
|
@observes('composer.reply')
|
|
|
|
setField() {
|
|
|
|
this.set('field.value', this.get('composer.reply'));
|
|
|
|
},
|
|
|
|
|
2018-02-08 05:30:55 +01:00
|
|
|
@computed('showPreview')
|
|
|
|
togglePreviewLabel(showPreview) {
|
|
|
|
return showPreview ? 'wizard_composer.hide_preview' : 'wizard_composer.show_preview';
|
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
togglePreview() {
|
|
|
|
this.toggleProperty('showPreview');
|
2019-11-20 13:08:04 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
groupsMentioned() {
|
|
|
|
},
|
|
|
|
afterRefresh() {
|
2020-02-05 07:58:35 +01:00
|
|
|
},
|
2019-11-20 13:08:04 +01:00
|
|
|
cannotSeeMention() {
|
|
|
|
},
|
|
|
|
importQuote() {
|
|
|
|
},
|
|
|
|
showUploadSelector() {
|
2018-02-08 05:30:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|