2017-05-29 20:50:03 +02:00
|
|
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
2016-05-24 14:06:59 +02:00
|
|
|
import styleBody from 'ghost-admin/mixins/style-body';
|
2017-10-30 10:38:01 +01:00
|
|
|
import {inject as service} from '@ember/service';
|
2014-06-01 21:30:50 +02:00
|
|
|
|
2015-05-26 04:10:50 +02:00
|
|
|
export default AuthenticatedRoute.extend(styleBody, {
|
2018-01-11 18:43:23 +01:00
|
|
|
notifications: service(),
|
|
|
|
|
2014-11-25 21:56:08 +01:00
|
|
|
titleToken: 'Sign Out',
|
|
|
|
|
2014-06-01 21:30:50 +02:00
|
|
|
classNames: ['ghost-signout'],
|
|
|
|
|
2018-10-05 20:46:33 +02:00
|
|
|
afterModel(/*model, transition*/) {
|
|
|
|
this.notifications.clearAll();
|
|
|
|
this.session.invalidate();
|
2014-10-24 23:09:50 +02:00
|
|
|
}
|
2014-06-01 21:30:50 +02:00
|
|
|
});
|