diff --git a/ghost/admin/app/authenticators/cookie.js b/ghost/admin/app/authenticators/cookie.js index dfc709a4e9..32b9370809 100644 --- a/ghost/admin/app/authenticators/cookie.js +++ b/ghost/admin/app/authenticators/cookie.js @@ -5,11 +5,7 @@ import {inject as service} from '@ember/service'; export default Authenticator.extend({ ajax: service(), - config: service(), - feature: service(), ghostPaths: service(), - settings: service(), - whatsNew: service(), sessionEndpoint: computed('ghostPaths.apiRoot', function () { return `${this.ghostPaths.apiRoot}/session`; @@ -28,23 +24,7 @@ export default Authenticator.extend({ dataType: 'text' }; - return this.ajax.post(this.sessionEndpoint, options).then((authResult) => { - // TODO: remove duplication with application.afterModel - let preloadPromises = [ - this.config.fetchAuthenticated(), - this.feature.fetch(), - this.settings.fetch() - ]; - - // kick off background update of "whats new" - // - we don't want to block the router for this - // - we need the user details to know what the user has seen - this.whatsNew.fetchLatest.perform(); - - return RSVP.all(preloadPromises).then(() => { - return authResult; - }); - }); + return this.ajax.post(this.sessionEndpoint, options); }, invalidate() { diff --git a/ghost/admin/app/components/modal-post-preview/email.hbs b/ghost/admin/app/components/modal-post-preview/email.hbs index d54e2c4304..77969c8307 100644 --- a/ghost/admin/app/components/modal-post-preview/email.hbs +++ b/ghost/admin/app/components/modal-post-preview/email.hbs @@ -12,7 +12,7 @@