Skip to content

Commit fb9fa32

Browse files
committed
fetch getTemplatesHypertools
1 parent b6d9f48 commit fb9fa32

File tree

1 file changed

+10
-2
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ qx.Class.define("osparc.dashboard.AppBrowser", {
3434

3535
members: {
3636
__sortBy: null,
37+
__hypertools: null,
3738

3839
// overridden
3940
initResources: function() {
@@ -43,8 +44,13 @@ qx.Class.define("osparc.dashboard.AppBrowser", {
4344
this._resourcesInitialized = true;
4445

4546
this._resourcesList = [];
46-
osparc.store.Services.getServicesLatest()
47-
.then(services => {
47+
Promise.all([
48+
osparc.store.Services.getServicesLatest(),
49+
osparc.store.Templates.getTemplatesHypertools(),
50+
])
51+
.then(resps => {
52+
const services = resps[0];
53+
const hypertools = resps[1];
4854
// Show "Contact Us" message if services.length === 0
4955
// Most probably is a product-stranger user (it can also be that the catalog is down)
5056
if (Object.keys(services).length === 0) {
@@ -57,6 +63,8 @@ qx.Class.define("osparc.dashboard.AppBrowser", {
5763
osparc.FlashMessenger.getInstance().logAs(msg, "WARNING");
5864
}
5965

66+
console.log("hypertools", hypertools);
67+
this.__hypertools = hypertools;
6068
this.getChildControl("resources-layout");
6169
this.reloadResources();
6270
this._hideLoadingPage();

0 commit comments

Comments
 (0)