mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
20 lines
452 B
JavaScript
20 lines
452 B
JavaScript
import Ember from 'ember';
|
|
import layout from '../templates/components/ghost-card';
|
|
|
|
export default Ember.Component.extend({
|
|
layout,
|
|
classNames: ['ghost-card'],
|
|
actions: {
|
|
save() {
|
|
this.set('doSave', Date.now());
|
|
},
|
|
toggleState() {
|
|
this.set('isEditing', !this.get('isEditing'));
|
|
}
|
|
},
|
|
init() {
|
|
this._super(...arguments);
|
|
this.set('isEditing', false);
|
|
}
|
|
});
|