mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
1eb90249fd
fixes #2748 - Properly handle marking post as featured/non-featured - Show correct notifications
17 lines
516 B
JavaScript
17 lines
516 B
JavaScript
import itemView from 'ghost/views/item-view';
|
|
|
|
var PostItemView = itemView.extend({
|
|
classNameBindings: ['isFeatured'],
|
|
|
|
isFeatured: function () {
|
|
if (this.get('controller.model.featured')) {
|
|
return 'featured';
|
|
}
|
|
}.property('controller.model.featured'),
|
|
|
|
openEditor: function () {
|
|
this.get('controller').send('openEditor', this.get('controller.model')); // send action to handle transition to editor route
|
|
}.on('doubleClick')
|
|
});
|
|
|
|
export default PostItemView;
|