Skip to content

Commit bab868d

Browse files
committed
minor
1 parent 64bee7a commit bab868d

File tree

1 file changed

+4
-5
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+4
-5
lines changed

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,17 +417,16 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
417417
__reloadFiles: function() {
418418
if (
419419
!osparc.auth.Manager.getInstance().isLoggedIn() ||
420-
osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_FILES !== this.getCurrentContext() ||
421-
this.__loadingFiles
420+
this.getCurrentContext() !== osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_FILES ||
421+
this._loadingResourcesBtn.isFetching()
422422
) {
423423
return;
424424
}
425425

426-
this.__loadingFiles = true;
427-
this.__setFilesToList([]);
426+
this._loadingResourcesBtn.setFetching(true);
427+
this._loadingResourcesBtn.setVisibility("visible");
428428
const filterData = this._searchBarFilter.getFilterData();
429429
const text = filterData.text ? encodeURIComponent(filterData.text) : "";
430-
431430
osparc.store.Data.getInstance().searchFiles(text)
432431
.then(streamData => {
433432
const stream = new osparc.data.StreamTask(streamData);

0 commit comments

Comments
 (0)