0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 13:52:54 +01:00
discourse-custom-wizard/assets/javascripts/wizard/components/wizard-field-composer.js.es6

15 Zeilen
369 B
Text

2018-02-08 05:30:55 +01:00
import { default as computed } from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
@computed('showPreview')
togglePreviewLabel(showPreview) {
return showPreview ? 'wizard_composer.hide_preview' : 'wizard_composer.show_preview';
},
actions: {
togglePreview() {
this.toggleProperty('showPreview');
}
}
});