Ghost/ghost/admin/controllers/posts/post.js
Taras Mankovski 01b49fede8 Minor refactoring of the routers:
- Moved post route under posts resource
- Changed ajax to use ic.ajax.request instead of ic.ajax.raw
2014-03-07 14:01:27 +00:00

6 lines
170 B
JavaScript

var equal = Ember.computed.equal;
export default Ember.ObjectController.extend({
isPublished: equal('status', 'published'),
isDraft: equal('status', 'draft')
});