Skip to content

Commit 46210c4

Browse files
committed
load folders after going back
1 parent 68d560d commit 46210c4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
223223
throw new Error("Abstract method called!");
224224
},
225225

226-
reloadResources: function() {
226+
reloadMoreResources: function() {
227227
throw new Error("Abstract method called!");
228228
},
229229

@@ -432,7 +432,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
432432

433433
_moreResourcesRequired: function() {
434434
if (this._resourcesContainer && this._resourcesContainer.areMoreResourcesRequired(this._loadingResourcesBtn)) {
435-
this.reloadResources();
435+
this.reloadMoreResources();
436436
}
437437
},
438438

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
119119
const isStudyCreation = false;
120120
this._startStudyById(loadStudyId, null, cancelCB, isStudyCreation);
121121
} else {
122-
this.__reloadFolders();
123122
this.reloadResources();
124123
}
125124
// "Starting..." page
@@ -151,12 +150,17 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
151150
osparc.data.Permissions.getInstance().canDo("studies.user.read") &&
152151
osparc.auth.Manager.getInstance().isLoggedIn()
153152
) {
153+
this.__reloadFolders();
154154
this.__reloadStudies();
155155
} else {
156156
this.__resetStudiesList();
157157
}
158158
},
159159

160+
reloadMoreResources: function() {
161+
this.__reloadStudies();
162+
},
163+
160164
__reloadWorkspaces: function() {
161165
this.__setWorkspacesToList([]);
162166
osparc.store.Workspaces.getInstance().fetchWorkspaces()

0 commit comments

Comments
 (0)