mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
961ab5f064
closes #3936 - Implement new PSM - Hook up close action - Automatically close when view is destroyed - Close on click and when pressing ESC
18 lines
580 B
JavaScript
18 lines
580 B
JavaScript
/* 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());
|
|
}),
|
|
|
|
animateOut: function () {
|
|
$('body').removeClass('right-outlet-expanded');
|
|
}.on('willDestroyElement')
|
|
});
|
|
|
|
export default PostSettingsMenuView;
|