Skip to content

Commit

Permalink
last call to Store
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Dec 9, 2024
1 parent b80e61a commit 3487e47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3487e47

Please sign in to comment.