mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
4a987bfc15
closes #2910 - create EditorController, PostSettingsMenuController - remove `posts.post` controllerName dependency on EditorRoute/NewRoute - `{{render}}` the PostSettingsMenuView with its own controller - break up properties/methods from PostsPostController into all three controllers - fix EditorRoute pagination options to now be comparable to PostsRoute - add NewController to force NewRoute to refresh editor with blank model. Identical to Editor's - EditorController and NewController are based on a shared mixin - NewView created, templateName is 'editor'
14 lines
338 B
JavaScript
14 lines
338 B
JavaScript
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
|
import styleBody from 'ghost/mixins/style-body';
|
|
|
|
var NewRoute = AuthenticatedRoute.extend(styleBody, {
|
|
classNames: ['editor'],
|
|
|
|
model: function () {
|
|
return this.store.createRecord('post', {
|
|
title: ''
|
|
});
|
|
}
|
|
});
|
|
|
|
export default NewRoute;
|