2014-04-20 18:48:34 +04:00
|
|
|
/* global moment */
|
|
|
|
import {formatDate} from 'ghost/utils/date-formatting';
|
|
|
|
|
|
|
|
var PostSettingsMenuView = Ember.View.extend({
|
|
|
|
templateName: 'post-settings-menu',
|
2014-07-30 05:57:19 +04:00
|
|
|
//@TODO Changeout the binding for a simple computedOneWay?
|
2014-04-20 18:48:34 +04:00
|
|
|
publishedAtBinding: Ember.Binding.oneWay('controller.publishedAt'),
|
2014-07-30 05:57:19 +04:00
|
|
|
datePlaceholder: Ember.computed('controller.publishedAt', function () {
|
2014-04-20 18:48:34 +04:00
|
|
|
return formatDate(moment());
|
2014-09-04 17:56:07 +04:00
|
|
|
}),
|
|
|
|
|
|
|
|
animateOut: function () {
|
|
|
|
$('body').removeClass('right-outlet-expanded');
|
|
|
|
}.on('willDestroyElement')
|
2014-04-20 18:48:34 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default PostSettingsMenuView;
|