Skip to content

Commit 6cfe808

Browse files
committed
hide "Available for Importing" text if Import button is there
1 parent 394cfd6 commit 6cfe808

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,16 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
381381
osparc.store.Pricing.getInstance().fetchPricingUnits(licensedItemData["pricingPlanId"])
382382
.then(pricingUnits => {
383383
if (pricingUnits.length === 1 && pricingUnits[0].getCost() === 0) {
384-
const availableLabel = new qx.ui.basic.Label().set({
384+
const availableForImporting = new qx.ui.basic.Label().set({
385385
font: "text-14",
386386
value: this.tr("Available for Importing"),
387387
padding: 10,
388388
});
389-
pricingUnitsLayout.add(availableLabel);
389+
pricingUnitsLayout.add(availableForImporting);
390+
// hide the text if Import button is there
391+
this.bind("openBy", pricingLayout, "visibility", {
392+
converter: openBy => openBy ? "excluded" : "visible"
393+
});
390394
} else {
391395
pricingUnits.forEach(pricingUnit => {
392396
pricingUnit.set({

0 commit comments

Comments
 (0)