diff options
Diffstat (limited to 'catalog-ui/src/app/directives/property-types/type-list')
-rw-r--r-- | catalog-ui/src/app/directives/property-types/type-list/type-list-directive.html | 2 | ||||
-rw-r--r-- | catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.html b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.html index e92e8b1a34..1455f2742f 100644 --- a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.html +++ b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.html @@ -28,7 +28,7 @@ <div data-ng-if="!isSchemaTypeDataType"> <div class="i-sdc-form-item list-new-item" data-ng-class="{error:(parentFormObj['listNewItem'+fieldsPrefixName].$dirty && parentFormObj['listNewItem'+fieldsPrefixName].$invalid)}" ng-if="schemaProperty.type !== 'map'"> - <form class="temp-form"> + <form class="temp-form" data-ng-if="isService"> <input type="radio" name="hasToscaFunction-{{fieldsPrefixName}}-{{$index}}" data-ng-checked="{{showToscaFunction[$index] == false}}" data-ng-click="onEnableTosca(false,$index)"/> Value <input type="radio" name="hasToscaFunction-{{fieldsPrefixName}}-{{$index}}" data-ng-checked="{{showToscaFunction[$index]}}" data-ng-click="onEnableTosca(true,$index)" /> diff --git a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts index 23add5363e..0d54fc4343 100644 --- a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts +++ b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts @@ -46,6 +46,7 @@ export interface ITypeListScope extends ng.IScope { showToscaFunction: Array<boolean>; constraints:string[]; types:DataTypesMap; + isService:boolean; getValidationPattern(type:string):RegExp; validateIntRange(value:string):boolean; @@ -83,7 +84,8 @@ export class TypeListDirective implements ng.IDirective { defaultValue: '@',//this list default value maxLength: '=', constraints: '=', - types: '=' + types: '=', + isService: '=' }; restrict = 'E'; |