Skip to content

Commit

Permalink
🎨 [Frontend] ViP Market: last minors (#7250)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Feb 20, 2025
1 parent 9d6f156 commit d5072d0
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 170 deletions.
2 changes: 1 addition & 1 deletion services/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,4 @@ services:
networks:
docker-api-network:
driver_opts:
encrypted: "false" # disable locally, some WSL versions have issues with encrypted networks SEE https://github.com/microsoft/WSL/issues/10029
{} # override 'encrypted' locally, some WSL versions have issues with encrypted networks SEE https://github.com/microsoft/WSL/issues/10029
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ qx.Class.define("osparc.store.LicensedItems", {

licensedResourceTitle: function(licensedResource) {
const name = licensedResource["source"]["features"]["name"] || osparc.store.LicensedItems.extractNameFromDescription(licensedResource);
const version = licensedResource["source"]["features"]["version"] || "";
const functionality = licensedResource["source"]["features"]["functionality"] || "Static";
return `${name}, ${functionality}`;
return `${name} ${version}, ${functionality}`;
},

extractNameFromDescription: function(licensedResource) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ qx.Class.define("osparc.study.PricingUnitLicense", {
// add price info
const price = this.getChildControl("price");
pricingUnit.bind("cost", price, "value", {
converter: v => this.tr("Credits") + ": " + v
converter: v => this.tr("Credits") + ": " + osparc.utils.Utils.addWhiteSpaces(v)
});

// add edit button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ qx.Class.define("osparc.utils.Utils", {

FLOATING_Z_INDEX: 1000001 + 1,

addWhiteSpaces: function(integer) {
return new Intl.NumberFormat("fr-FR").format(integer); // french will add white spaces every 3 digits
},

updateTabName: function(name) {
document.title = name;
},
Expand Down
Loading

0 comments on commit d5072d0

Please sign in to comment.