Skip to content

Commit f36aec9

Browse files
committed
Show cost
1 parent 90b4201 commit f36aec9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ qx.Class.define("osparc.study.PricingUnitLicense", {
8585
},
8686

8787
__rentUnit: function() {
88+
const nCredits = this.getUnitData().getCost();
8889
const expirationDate = osparc.study.PricingUnitLicense.getExpirationDate();
89-
const msg = this.getUnitData().getName() + this.tr(" will be available until ") + osparc.utils.Utils.formatDate(expirationDate);
90+
let msg = this.getUnitData().getName() + this.tr(" will be available until ") + osparc.utils.Utils.formatDate(expirationDate);
91+
msg += "<br>";
92+
msg += `The rental will cost ${nCredits} credits: ${osparc.store.Store.getInstance().getCreditPrice()*nCredits}$`;
9093
const confirmationWin = new osparc.ui.window.Confirmation(msg).set({
9194
caption: this.tr("Rent"),
9295
confirmText: this.tr("Rent"),

0 commit comments

Comments
 (0)