Skip to content

Commit

Permalink
Prevent setup loop on step 3
Browse files Browse the repository at this point in the history
closes #5747

- change transition event to regardless of user invite success/failure
  • Loading branch information
cobbspur committed Aug 28, 2015
1 parent 1ac7d2a commit a5e4753
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/client/app/controllers/setup/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,11 @@ export default Ember.Controller.extend({
if (successCount > 0) {
// pluralize
invitationsString = successCount > 1 ? 'invitations' : 'invitation';

notifications.showAlert(successCount + ' ' + invitationsString + ' sent!', {type: 'success', delayed: true});
self.send('loadServerNotifications');
self.transitionToRoute('posts.index');
}

self.send('loadServerNotifications');
self.toggleProperty('submitting');
self.transitionToRoute('posts.index');
});
});
} else if (users.length === 0) {
Expand Down

0 comments on commit a5e4753

Please sign in to comment.