Temp fix to allow tosca functions in op props 17/130817/3
authorMichaelMorris <michael.morris@est.tech>
Thu, 8 Sep 2022 15:49:58 +0000 (16:49 +0100)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Fri, 9 Sep 2022 14:04:38 +0000 (14:04 +0000)
Temporary measure to unblock using tosca function values in operation implementation properties. To be removed when SDC-4170 is implemented

Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4171
Change-Id: Id5925c286a76ea60d5bf9ce97124a4cbbd1ca216

catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/input-list/input-list-item/input-list-item.component.ts

index 7c0465f..7fed5d9 100644 (file)
@@ -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';
   }