Skip to content

Commit 9b88c5d

Browse files
committed
rental-period
1 parent e816eaf commit 9b88c5d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ qx.Class.define("osparc.study.PricingUnitLicense", {
3535
_createChildControlImpl: function(id) {
3636
let control;
3737
switch (id) {
38+
case "rental-period":
39+
control = new qx.ui.basic.Label().set({
40+
value: this.tr("Duration: 1 year"),
41+
font: "text-14",
42+
});
43+
this._add(control);
44+
break;
3845
case "rent-button":
39-
control = new qx.ui.form.Button(qx.locale.Manager.tr("Rent")).set({
46+
control = new qx.ui.form.Button(this.tr("Rent")).set({
4047
appearance: "strong-button",
4148
center: true,
4249
});
@@ -54,10 +61,12 @@ qx.Class.define("osparc.study.PricingUnitLicense", {
5461
_buildLayout: function(pricingUnit) {
5562
this.base(arguments, pricingUnit);
5663

64+
this.getChildControl("rental-period");
65+
5766
// add price info
5867
const price = this.getChildControl("price");
5968
pricingUnit.bind("cost", price, "value", {
60-
converter: v => qx.locale.Manager.tr("Credits") + ": " + v
69+
converter: v => this.tr("Credits") + ": " + v
6170
});
6271

6372
// add edit button

0 commit comments

Comments
 (0)