mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-08 20:22:53 +03:00
23 lines
465 B
JavaScript
23 lines
465 B
JavaScript
import Component from 'ember-component';
|
|
import layout from '../templates/components/koenig-card';
|
|
|
|
export default Component.extend({
|
|
layout,
|
|
classNames: ['koenig-card'],
|
|
|
|
init() {
|
|
this._super(...arguments);
|
|
this.set('isEditing', false);
|
|
},
|
|
|
|
actions: {
|
|
save() {
|
|
this.set('doSave', Date.now());
|
|
},
|
|
|
|
toggleState() {
|
|
this.set('isEditing', !this.get('isEditing'));
|
|
}
|
|
}
|
|
});
|