Skip to content

Commit fe37351

Browse files
FlxB2miwurster
authored andcommitted
fixes capabilities definitions section in nodetypes which were inserting unbounded as number of occurences instead of UNBOUNDED
Signed-off-by: Felix Burk <felix.burk@googlemail.com>
1 parent e79a7d6 commit fe37351

File tree

1 file changed

+2
-2
lines changed
  • org.eclipse.winery.frontends/app/tosca-management/src/app/instance/nodeTypes/capabilityOrRequirementDefinitions

1 file changed

+2
-2
lines changed

org.eclipse.winery.frontends/app/tosca-management/src/app/instance/nodeTypes/capabilityOrRequirementDefinitions/capOrReqDef.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class CapOrReqDefComponent implements OnInit {
221221
for (const entry of apidata.capOrRegDefinitionsList) {
222222
const name = entry.name;
223223
const lowerBound = entry.lowerBound;
224-
const upperBound = entry.upperBound === 'unbounded' ? '∞' : entry.upperBound;
224+
const upperBound = entry.upperBound === 'UNBOUNDED' ? '∞' : entry.upperBound;
225225
const type = this.capOrReqTypeToHref(isNullOrUndefined(entry.capabilityType)
226226
=== false ? entry.capabilityType : entry.requirementType);
227227
const constraint = '<button class="btn btn-xs" style="pointer-events: none;">Constraint...</button>';
@@ -289,7 +289,7 @@ export class CapOrReqDefComponent implements OnInit {
289289
this.addModal.hide();
290290
this.capOrReqDefToBeAdded.lowerBound = this.lowerBoundSpinner.value;
291291
if (this.upperBoundSpinner.value === '∞') {
292-
this.capOrReqDefToBeAdded.upperBound = 'unbounded';
292+
this.capOrReqDefToBeAdded.upperBound = 'UNBOUNDED';
293293
} else {
294294
this.capOrReqDefToBeAdded.upperBound = this.upperBoundSpinner.value;
295295
}

0 commit comments

Comments
 (0)