18 lines
418 B
JavaScript
18 lines
418 B
JavaScript
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default AuthenticatedRoute.extend({
|
|
notifications: service(),
|
|
|
|
afterModel(/*model, transition*/) {
|
|
this.notifications.clearAll();
|
|
this.session.invalidate();
|
|
},
|
|
|
|
buildRouteInfoMetadata() {
|
|
return {
|
|
titleToken: 'Sign Out'
|
|
};
|
|
}
|
|
});
|