2017-05-29 21:50:03 +03:00
|
|
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
2017-10-30 12:38:01 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2014-06-01 23:30:50 +04:00
|
|
|
|
2019-05-20 16:15:46 +03:00
|
|
|
export default AuthenticatedRoute.extend({
|
2018-01-11 20:43:23 +03:00
|
|
|
notifications: service(),
|
|
|
|
|
2018-10-05 21:46:33 +03:00
|
|
|
afterModel(/*model, transition*/) {
|
|
|
|
this.notifications.clearAll();
|
|
|
|
this.session.invalidate();
|
2019-05-20 18:16:19 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
buildRouteInfoMetadata() {
|
|
|
|
return {
|
|
|
|
titleToken: 'Sign Out'
|
|
|
|
};
|
2014-10-25 01:09:50 +04:00
|
|
|
}
|
2014-06-01 23:30:50 +04:00
|
|
|
});
|