Ghost/ghost/admin/views/post-settings-menu-view.js
Matt Enlow e7f5dd3204 Create Post Settings Menu and its functionality on the Post controller.
closes #2419
- Added blur-text-field component, which fires actions on focusOut
- Added utils/date-formatting for moment & date functionality  consolidation
- Added functionality to PostsPostController
- Added fixtures: posts/3 & posts/4, posts/slug/test%20title/
- Added Post model saving
- Set posts.post as controller for EditorRoute
- Added PostSettingsMenuView and template
- Added "showErrors" convenience method to notifications
2014-04-20 13:28:43 -06:00

19 lines
655 B
JavaScript

/* global moment */
import {formatDate} from 'ghost/utils/date-formatting';
var PostSettingsMenuView = Ember.View.extend({
templateName: 'post-settings-menu',
classNames: ['post-settings-menu', 'menu-drop-right', 'overlay'],
classNameBindings: ['controller.isEditingSettings::hidden'],
publishedAtBinding: Ember.Binding.oneWay('controller.publishedAt'),
click: function (event) {
//Stop click propagation to prevent window closing
event.stopPropagation();
},
datePlaceholder: function () {
return formatDate(moment());
}.property('controller.publishedAt')
});
export default PostSettingsMenuView;