Skip to content

Commit 1c2658a

Browse files
committed
capitalize
1 parent d5072d0 commit 1c2658a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

services/static-webserver/client/source/class/osparc/vipMarket/AnatomicalModelDetails.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
235235
const featuresGrid = new qx.ui.layout.Grid(8, 8);
236236
const featuresLayout = new qx.ui.container.Composite(featuresGrid);
237237
let idx = 0;
238+
const capitalizeField = [
239+
"Sex",
240+
"Species",
241+
"Ethnicity",
242+
"Functionality",
243+
];
238244
[
239245
"Name",
240246
"Version",
@@ -258,8 +264,10 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
258264
row: idx,
259265
});
260266

267+
const value = features[key.toLowerCase()];
268+
const featureValue = capitalizeField.includes(key) ? osparc.utils.Utils.capitalize(value) : value;
261269
const nameLabel = new qx.ui.basic.Label().set({
262-
value: features[key.toLowerCase()],
270+
value: featureValue,
263271
font: "text-14",
264272
alignX: "left",
265273
});

0 commit comments

Comments
 (0)