Ghost/ghost/admin/views/post-settings-menu-view.js

14 lines
461 B
JavaScript
Raw Normal View History

/* global moment */
import {formatDate} from 'ghost/utils/date-formatting';
var PostSettingsMenuView = Ember.View.extend({
templateName: 'post-settings-menu',
//@TODO Changeout the binding for a simple computedOneWay?
publishedAtBinding: Ember.Binding.oneWay('controller.publishedAt'),
datePlaceholder: Ember.computed('controller.publishedAt', function () {
return formatDate(moment());
})
});
export default PostSettingsMenuView;