Skip to content

Commit

Permalink
waitBeforeSearching
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Jan 14, 2025
1 parent 4d03621 commit 9f2eff8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
clearTimeout(this.__searchDelayer);
}
if (filterValue.length > 3) {
this.__searchingCollaborators.show();
const waitBeforeSearching = 1000;
this.__searchDelayer = setTimeout(() => {
this.__searchingCollaborators.show();
this.__searchUsers();
}, 1000);
}, waitBeforeSearching);
}
});
this.add(toolbar);
Expand Down Expand Up @@ -118,6 +117,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
},

__searchUsers: function() {
this.__searchingCollaborators.show();
const text = this.__textFilter.getChildControl("textfield").getValue();
osparc.store.Users.getInstance().searchUsers(text)
.then(users => {
Expand Down

0 comments on commit 9f2eff8

Please sign in to comment.