Ghost/ghost/admin/app/routes/signout.js

18 lines
418 B
JavaScript
Raw Normal View History

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'
};
}
});