Skip to content

Commit ca65dad

Browse files
odeimaizmrnicegyu11
authored andcommitted
🎨 [Frontend] ViP Market: last minors (ITISFoundation#7250)
1 parent c38c7b9 commit ca65dad

File tree

6 files changed

+198
-170
lines changed

6 files changed

+198
-170
lines changed

‎services/docker-compose.local.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,4 @@ services:
260260
networks:
261261
docker-api-network:
262262
driver_opts:
263-
encrypted: "false" # disable locally, some WSL versions have issues with encrypted networks SEE https://github.com/microsoft/WSL/issues/10029
263+
{} # override 'encrypted' locally, some WSL versions have issues with encrypted networks SEE https://github.com/microsoft/WSL/issues/10029

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ qx.Class.define("osparc.store.LicensedItems", {
7272

7373
licensedResourceTitle: function(licensedResource) {
7474
const name = licensedResource["source"]["features"]["name"] || osparc.store.LicensedItems.extractNameFromDescription(licensedResource);
75+
const version = licensedResource["source"]["features"]["version"] || "";
7576
const functionality = licensedResource["source"]["features"]["functionality"] || "Static";
76-
return `${name}, ${functionality}`;
77+
return `${name} ${version}, ${functionality}`;
7778
},
7879

7980
extractNameFromDescription: function(licensedResource) {

‎services/static-webserver/client/source/class/osparc/study/PricingUnitLicense.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ qx.Class.define("osparc.study.PricingUnitLicense", {
7474
// add price info
7575
const price = this.getChildControl("price");
7676
pricingUnit.bind("cost", price, "value", {
77-
converter: v => this.tr("Credits") + ": " + v
77+
converter: v => this.tr("Credits") + ": " + osparc.utils.Utils.addWhiteSpaces(v)
7878
});
7979

8080
// add edit button

‎services/static-webserver/client/source/class/osparc/utils/Utils.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ qx.Class.define("osparc.utils.Utils", {
9191

9292
FLOATING_Z_INDEX: 1000001 + 1,
9393

94+
addWhiteSpaces: function(integer) {
95+
return new Intl.NumberFormat("fr-FR").format(integer); // french will add white spaces every 3 digits
96+
},
97+
9498
updateTabName: function(name) {
9599
document.title = name;
96100
},

0 commit comments

Comments
 (0)