mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 04:08:34 +03:00
3cae5a55dd
Ref #2308 - Double clicking a PostItemView on the content screen will open that post in the editor. - Added `'ctrl+e, command+e': 'openEditor'` shortcut will open editor as well
18 lines
469 B
JavaScript
18 lines
469 B
JavaScript
import itemView from 'ghost/views/item-view';
|
|
|
|
var PostItemView = itemView.extend({
|
|
classNameBindings: ['isFeatured:featured', 'isPage:page'],
|
|
|
|
isFeatured: Ember.computed.alias('controller.model.featured'),
|
|
|
|
isPage: Ember.computed.alias('controller.model.page'),
|
|
|
|
//Edit post on double click
|
|
doubleClick: function () {
|
|
this.get('controller').send('openEditor', this.get('controller.model'));
|
|
}
|
|
|
|
});
|
|
|
|
export default PostItemView;
|