2016-05-24 15:06:59 +03:00
|
|
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
|
|
import CurrentUserSettings from 'ghost-admin/mixins/current-user-settings';
|
2018-07-02 16:38:27 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2014-07-20 20:42:03 +04:00
|
|
|
|
2019-05-20 16:15:46 +03:00
|
|
|
export default AuthenticatedRoute.extend(CurrentUserSettings, {
|
2018-07-02 16:38:27 +03:00
|
|
|
infinity: service(),
|
2019-01-14 17:50:30 +03:00
|
|
|
session: service(),
|
2014-11-25 23:56:08 +03:00
|
|
|
|
2019-02-22 12:43:35 +03:00
|
|
|
titleToken: 'Staff',
|
2014-09-23 17:04:49 +04:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
model() {
|
2019-01-14 17:50:30 +03:00
|
|
|
return this.session.user;
|
2014-08-03 04:49:56 +04:00
|
|
|
},
|
|
|
|
|
2019-01-14 17:50:30 +03:00
|
|
|
setupController(controller) {
|
|
|
|
this._super(...arguments);
|
|
|
|
controller.backgroundUpdate.perform();
|
2016-09-26 19:03:53 +03:00
|
|
|
},
|
|
|
|
|
2014-08-03 04:49:56 +04:00
|
|
|
actions: {
|
2015-10-28 14:36:45 +03:00
|
|
|
reload() {
|
2019-01-14 17:50:30 +03:00
|
|
|
this.controller.backgroundUpdate.perform();
|
2014-08-03 04:49:56 +04:00
|
|
|
}
|
2014-07-02 07:44:39 +04:00
|
|
|
}
|
|
|
|
});
|