Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 09:50:28 +01:00
15 Zeilen
369 B
Text
15 Zeilen
369 B
Text
|
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');
|
||
|
}
|
||
|
}
|
||
|
});
|