Skip to content

Commit 7c5e62e

Browse files
committed
getDefaultWelcomeCredits
1 parent 5188446 commit 7c5e62e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

services/static-webserver/client/source/class/osparc/po/UsersPending.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ qx.Class.define("osparc.po.UsersPending", {
3434
const extraCreditsInUsd = new qx.ui.form.Spinner().set({
3535
minimum: 0,
3636
maximum: 1000,
37-
value: 100
37+
value: osparc.product.Utils.getDefaultWelcomeCredits(),
3838
});
3939
form.add(extraCreditsInUsd, qx.locale.Manager.tr("Welcome Credits (USD)"), null, "credits");
4040

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,16 @@ qx.Class.define("osparc.product.Utils", {
327327
return this.isS4LProduct() && licensesEnabled;
328328
},
329329

330+
getDefaultWelcomeCredits: function() {
331+
switch (osparc.product.Utils.getProductName()) {
332+
case "s4l":
333+
case "s4lacad":
334+
return 100;
335+
default:
336+
return 0;
337+
}
338+
},
339+
330340
getIconUrl: function(asset = "Default.png") {
331341
const base = "https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/icons"
332342
let url;

0 commit comments

Comments
 (0)