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
|
|
|
|
2022-01-17 12:34:55 +03:00
|
|
|
export default class SignoutRoute extends AuthenticatedRoute {
|
|
|
|
@service notifications;
|
2018-01-11 20:43:23 +03:00
|
|
|
|
2022-01-17 12:34:55 +03:00
|
|
|
afterModel/*model, transition*/() {
|
2018-10-05 21:46:33 +03:00
|
|
|
this.notifications.clearAll();
|
|
|
|
this.session.invalidate();
|
2022-01-17 12:34:55 +03:00
|
|
|
}
|
2019-05-20 18:16:19 +03:00
|
|
|
|
|
|
|
buildRouteInfoMetadata() {
|
|
|
|
return {
|
|
|
|
titleToken: 'Sign Out'
|
|
|
|
};
|
2014-10-25 01:09:50 +04:00
|
|
|
}
|
2022-01-17 12:34:55 +03:00
|
|
|
}
|