mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:29:17 -06:00
FIX: Better protection for invites scrolling
This commit is contained in:
parent
008337b018
commit
c90668ae53
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user