2016-05-24 15:06:59 +03:00
|
|
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
|
|
import CurrentUserSettings from 'ghost-admin/mixins/current-user-settings';
|
2017-10-30 12:38:01 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2016-03-29 11:40:44 +03:00
|
|
|
|
2019-05-20 16:15:46 +03:00
|
|
|
export default AuthenticatedRoute.extend(CurrentUserSettings, {
|
2017-10-30 12:38:01 +03:00
|
|
|
settings: service(),
|
2016-03-29 11:40:44 +03:00
|
|
|
|
|
|
|
beforeModel() {
|
|
|
|
this._super(...arguments);
|
2021-07-08 16:37:31 +03:00
|
|
|
this.transitionAuthor(this.session.user);
|
|
|
|
this.transitionEditor(this.session.user);
|
2018-10-18 02:18:29 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller) {
|
|
|
|
// kick off the background fetch of integrations so that we can
|
|
|
|
// show the screen immediately
|
|
|
|
controller.fetchIntegrations.perform();
|
2019-05-20 18:16:19 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
buildRouteInfoMetadata() {
|
|
|
|
return {
|
|
|
|
titleToken: 'Settings - Integrations'
|
|
|
|
};
|
2016-03-29 11:40:44 +03:00
|
|
|
}
|
|
|
|
});
|