0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/controllers/posts/post.js

14 lines
317 B
JavaScript
Raw Normal View History

var PostController = Ember.ObjectController.extend({
isPublished: Ember.computed.equal('status', 'published'),
actions: {
toggleFeatured: function () {
this.set('featured', !this.get('featured'));
this.get('model').save();
}
}
});
export default PostController;