mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
664048be4e
no issue - Fixes the editor view so that the layout is correct - Remove default title - Fixes a couple of scoping issues with notifications
20 lines
445 B
JavaScript
20 lines
445 B
JavaScript
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
|
import styleBody from 'ghost/mixins/style-body';
|
|
|
|
var NewRoute = AuthenticatedRoute.extend(styleBody, {
|
|
controllerName: 'posts.post',
|
|
classNames: ['editor'],
|
|
|
|
renderTemplate: function () {
|
|
this.render('editor');
|
|
},
|
|
|
|
model: function () {
|
|
return this.store.createRecord('post', {
|
|
title: ''
|
|
});
|
|
}
|
|
});
|
|
|
|
export default NewRoute;
|