0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/wizard/components/wizard-field-composer.js.es6
2019-11-20 23:08:04 +11:00

45 Zeilen
994 B
JavaScript

import { default as computed, observes } from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
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'));
},
@computed('showPreview')
togglePreviewLabel(showPreview) {
return showPreview ? 'wizard_composer.hide_preview' : 'wizard_composer.show_preview';
},
actions: {
togglePreview() {
this.toggleProperty('showPreview');
},
groupsMentioned() {
},
afterRefresh() {
},
storeToolbarState() {
},
cannotSeeMention() {
},
importQuote() {
},
onPopupMenuAction() {
},
showUploadSelector() {
}
}
});