From fe37351c75b13ae4df74608ec120f438bdcdb556 Mon Sep 17 00:00:00 2001 From: Felix Burk Date: Thu, 11 Jun 2020 11:18:37 +0200 Subject: [PATCH] fixes capabilities definitions section in nodetypes which were inserting unbounded as number of occurences instead of UNBOUNDED Signed-off-by: Felix Burk --- .../capOrReqDef.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.winery.frontends/app/tosca-management/src/app/instance/nodeTypes/capabilityOrRequirementDefinitions/capOrReqDef.component.ts b/org.eclipse.winery.frontends/app/tosca-management/src/app/instance/nodeTypes/capabilityOrRequirementDefinitions/capOrReqDef.component.ts index a6e752cf61..23ee31db21 100644 --- a/org.eclipse.winery.frontends/app/tosca-management/src/app/instance/nodeTypes/capabilityOrRequirementDefinitions/capOrReqDef.component.ts +++ b/org.eclipse.winery.frontends/app/tosca-management/src/app/instance/nodeTypes/capabilityOrRequirementDefinitions/capOrReqDef.component.ts @@ -221,7 +221,7 @@ export class CapOrReqDefComponent implements OnInit { for (const entry of apidata.capOrRegDefinitionsList) { const name = entry.name; const lowerBound = entry.lowerBound; - const upperBound = entry.upperBound === 'unbounded' ? '∞' : entry.upperBound; + const upperBound = entry.upperBound === 'UNBOUNDED' ? '∞' : entry.upperBound; const type = this.capOrReqTypeToHref(isNullOrUndefined(entry.capabilityType) === false ? entry.capabilityType : entry.requirementType); const constraint = ''; @@ -289,7 +289,7 @@ export class CapOrReqDefComponent implements OnInit { this.addModal.hide(); this.capOrReqDefToBeAdded.lowerBound = this.lowerBoundSpinner.value; if (this.upperBoundSpinner.value === '∞') { - this.capOrReqDefToBeAdded.upperBound = 'unbounded'; + this.capOrReqDefToBeAdded.upperBound = 'UNBOUNDED'; } else { this.capOrReqDefToBeAdded.upperBound = this.upperBoundSpinner.value; }