Ghost/ghost/admin/app/routes/staff/index.js

30 lines
697 B
JavaScript
Raw Normal View History

import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
import CurrentUserSettings from 'ghost-admin/mixins/current-user-settings';
import {inject as service} from '@ember/service';
export default AuthenticatedRoute.extend(CurrentUserSettings, {
infinity: service(),
session: service(),
model() {
return this.session.user;
},
setupController(controller) {
this._super(...arguments);
controller.backgroundUpdate.perform();
},
actions: {
reload() {
this.controller.backgroundUpdate.perform();
}
},
buildRouteInfoMetadata() {
return {
titleToken: 'Staff'
};
}
});