mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Merge pull request #3454 from halfdan/signout-email
Properly remove email notification on signout.
This commit is contained in:
commit
06fb658829
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
|
||||||
classNames: ['ghost-signout'],
|
classNames: ['ghost-signout'],
|
||||||
|
|
||||||
afterModel: function (model, transition) {
|
afterModel: function (model, transition) {
|
||||||
|
this.notifications.clear();
|
||||||
if (Ember.canInvoke(transition, 'send')) {
|
if (Ember.canInvoke(transition, 'send')) {
|
||||||
transition.send('invalidateSession');
|
transition.send('invalidateSession');
|
||||||
transition.abort();
|
transition.abort();
|
||||||
|
|
Loading…
Add table
Reference in a new issue