Skip to content

Commit 20644ef

Browse files
committed
fetchAllTemplates to Template Browser
1 parent 11e84a6 commit 20644ef

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ qx.Class.define("osparc.dashboard.Dashboard", {
200200
const groupsStore = osparc.store.Groups.getInstance();
201201
preResourcePromises.push(groupsStore.fetchGroupsAndMembers());
202202
preResourcePromises.push(osparc.store.Services.getServicesLatest(false));
203-
preResourcePromises.push(osparc.store.Templates.getInstance().fetchAllTemplates());
204203
Promise.all(preResourcePromises)
205204
.then(() => {
206205
[

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ qx.Class.define("osparc.dashboard.TemplateBrowser", {
3131

3232
// overridden
3333
initResources: function() {
34-
this._resourcesList = [];
35-
this.getChildControl("resources-layout");
36-
this.reloadResources();
37-
this.__attachEventHandlers();
38-
this._hideLoadingPage();
34+
osparc.store.Templates.getInstance().fetchAllTemplates()
35+
.then(() => {
36+
this._resourcesList = [];
37+
this.getChildControl("resources-layout");
38+
this.reloadResources();
39+
this.__attachEventHandlers();
40+
this._hideLoadingPage();
41+
});
3942
},
4043

4144
reloadResources: function(useCache = true) {

0 commit comments

Comments
 (0)