FIX: Better protection for invites scrolling

This commit is contained in:
Robin Ward 2014-12-02 17:03:12 -05:00
parent 008337b018
commit c90668ae53

View File

@ -80,7 +80,7 @@ export default Ember.ObjectController.extend({
var self = this;
var model = self.get('model');
if(self.get('canLoadMore')) {
if (self.get('canLoadMore') && !self.get('invitesLoading')) {
self.set('invitesLoading', true);
Discourse.Invite.findInvitedBy(self.get('user'), self.get('searchTerm'), model.invites.length).then(function(invite_model) {
self.set('invitesLoading', false);