Skip to content

Commit 5f2e083

Browse files
committed
getUiConfig
1 parent 9c13fb3 commit 5f2e083

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

services/static-webserver/client/source/class/osparc/data/Resources.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,11 @@ qx.Class.define("osparc.data.Resources", {
981981
updateEmailTemplate: {
982982
method: "PUT",
983983
url: statics.API + "/products/{productName}/templates/{templateId}"
984-
}
984+
},
985+
getUiConfig: {
986+
method: "GET",
987+
url: statics.API + "/products/current/ui"
988+
},
985989
}
986990
},
987991
"invitations": {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ qx.Class.define("osparc.store.Products", {
3434
});
3535
}
3636

37-
return osparc.utils.Utils.fetchJSON("/resource/osparc/ui_config.json")
37+
return osparc.data.Resources.fetch("productMetadata", "getUiConfig")
3838
.then(uiConfig => {
3939
const product = osparc.product.Utils.getProductName()
4040
if (product in uiConfig) {

0 commit comments

Comments
 (0)