diff options
author | Eylon Malin <eylon.malin@intl.att.com> | 2020-01-12 13:59:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-01-12 13:59:18 +0000 |
commit | 63ab2aa201b213d6b7d5b5b42fed4a76deecf18d (patch) | |
tree | 5006e433318cc20c2e6269203762bffffaa9f56e /vid-webpack-master/src/app | |
parent | 860899da8b3e43085c131cc848d35ea50d6c52ed (diff) | |
parent | ac489f52aa04baea9b68b2b170d15d23b8894dff (diff) |
Merge "Instance name (VNF name and VG) is displayed"
Diffstat (limited to 'vid-webpack-master/src/app')
-rw-r--r-- | vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.ts b/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.ts index e82ea5d85..acfaf78ab 100644 --- a/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.ts +++ b/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.ts @@ -167,7 +167,7 @@ export class SharedControllersService { placeHolder: (!isEcompGeneratedNaming) ? 'Instance name' : 'Automatically generated when not provided', validations: validations, isVisible : true, - value : (!isEcompGeneratedNaming || (!_.isNil(instance) && !_.isNil(instance.instanceName))) + value : (!isEcompGeneratedNaming || (!_.isNil(instance) && !_.isNil(instance.instanceName) && instance.instanceName !== "")) ? this._basicControlGenerator.getDefaultInstanceName(instance, model) : null, onKeypress : (event) => { const pattern:RegExp = ControlGeneratorUtil.INSTANCE_NAME_REG_EX; |