From cc13802507c3787d341ac1a5d50b539fc1174987 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Thu, 8 Sep 2022 16:49:58 +0100 Subject: Temp fix to allow tosca functions in op props Temporary measure to unblock using tosca function values in operation implementation properties. To be removed when SDC-4170 is implemented Signed-off-by: MichaelMorris Issue-ID: SDC-4171 Change-Id: Id5925c286a76ea60d5bf9ce97124a4cbbd1ca216 --- .../input-list/input-list-item/input-list-item.component.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/input-list/input-list-item/input-list-item.component.ts b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/input-list/input-list-item/input-list-item.component.ts index 7c0465f62a..7fed5d9e88 100644 --- a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/input-list/input-list-item/input-list-item.component.ts +++ b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/input-list/input-list-item/input-list-item.component.ts @@ -110,14 +110,6 @@ export class InputListItemComponent implements OnInit { } onValueChange(value: any): void { - if (this.type.name == PROPERTY_TYPES.INTEGER || this.type.name == PROPERTY_TYPES.FLOAT) { - this.emitValueChangeEvent(this.parseNumber(value)); - return; - } - if (this.type.name == PROPERTY_TYPES.BOOLEAN) { - this.emitValueChangeEvent(this.parseBoolean(value)); - return; - } this.emitValueChangeEvent(value); } @@ -222,9 +214,6 @@ export class InputListItemComponent implements OnInit { } getSimpleValueInputType() { - if (this.type.name == PROPERTY_TYPES.INTEGER || this.type.name == PROPERTY_TYPES.FLOAT) { - return 'number'; - } return 'text'; } -- cgit 1.2.3-korg