diff --git a/services/static-webserver/client/source/class/osparc/pricing/PlanEditor.js b/services/static-webserver/client/source/class/osparc/pricing/PlanEditor.js index e5ee877f78a..50543ee77e5 100644 --- a/services/static-webserver/client/source/class/osparc/pricing/PlanEditor.js +++ b/services/static-webserver/client/source/class/osparc/pricing/PlanEditor.js @@ -38,11 +38,11 @@ qx.Class.define("osparc.pricing.PlanEditor", { if (pricingPlan) { this.__pricingPlan = osparc.utils.Utils.deepCloneObject(pricingPlan); this.set({ - ppKey: pricingPlan.pricingPlanKey, - name: pricingPlan.displayName, - description: pricingPlan.description, - classification: pricingPlan.classification, - isActive: pricingPlan.isActive + ppKey: pricingPlan.getPricingPlanKey(), + name: pricingPlan.getName(), + description: pricingPlan.getDescription(), + classification: pricingPlan.getClassification(), + isActive: pricingPlan.getIsActive(), }); ppKey.setEnabled(false); this.getChildControl("save"); diff --git a/services/static-webserver/client/source/class/osparc/pricing/Plans.js b/services/static-webserver/client/source/class/osparc/pricing/Plans.js index 9ebef3d3599..7067d418e45 100644 --- a/services/static-webserver/client/source/class/osparc/pricing/Plans.js +++ b/services/static-webserver/client/source/class/osparc/pricing/Plans.js @@ -125,12 +125,7 @@ qx.Class.define("osparc.pricing.Plans", { }, __openUpdatePricingPlan: function(pricingPlanId) { - const params = { - url: { - pricingPlanId - } - } - osparc.data.Resources.fetch("pricingPlans", "getOne", params) + osparc.store.Pricing.getInstance().fetchPricingUnits(pricingPlanId) .then(pricingPlan => { const ppEditor = new osparc.pricing.PlanEditor(pricingPlan); const title = this.tr("Pricing Plan Editor");