Skip to content

Commit a2ac3f7

Browse files
committed
invalidateFunctions
1 parent 923171e commit a2ac3f7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,14 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
944944
}
945945
},
946946

947+
invalidateFunctions: function() {
948+
osparc.store.Functions.invalidateFunctions();
949+
this.__resetStudiesList();
950+
if (this._resourcesContainer.getFlatList()) {
951+
this._resourcesContainer.getFlatList().nextRequest = null;
952+
}
953+
},
954+
947955
__addNewPlusButton: function() {
948956
const newPlusButton = new osparc.dashboard.NewPlusButton();
949957
this._leftFilters.add(newPlusButton);
@@ -1280,7 +1288,6 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
12801288
this._searchBarFilter.setEnabled(false);
12811289
this._toolbar.exclude();
12821290
this._loadingResourcesBtn.setFetching(false);
1283-
// OM: implement this
12841291
this.invalidateFunctions();
12851292
this.__reloadStudies();
12861293
break;

services/static-webserver/client/source/class/osparc/store/Functions.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,12 @@ qx.Class.define("osparc.store.Functions", {
115115
}
116116
return null;
117117
},
118+
119+
invalidateFunctions: function() {
120+
this.__functions = null;
121+
if (this.__functionsPromiseCached) {
122+
this.__functionsPromiseCached = null;
123+
}
124+
},
118125
}
119126
});

0 commit comments

Comments
 (0)