diff options
author | Liu <yongqiang.liu@nokia-sbell.com> | 2020-01-27 10:59:12 +0800 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2020-02-05 09:48:24 -0500 |
commit | 700ac8a7ec822f1b7a0505319e4c453ca045d2ed (patch) | |
tree | 628c687faf129b6c3f87fe1e6b9b5c11fc2417ac /src/app/vnfs/build-artifacts/build-artifacts.component.ts | |
parent | 773f970c50772cddf75f7c7918935315e55d4e2d (diff) |
add new action configscalein for cdt
Change-Id: I2f05079b7c2428351332ac84c1ea56f31d4a38d9
Issue-ID: APPC-1760
Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts/build-artifacts.component.ts')
-rw-r--r-- | src/app/vnfs/build-artifacts/build-artifacts.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/vnfs/build-artifacts/build-artifacts.component.ts b/src/app/vnfs/build-artifacts/build-artifacts.component.ts index 4e00341..4ae123b 100644 --- a/src/app/vnfs/build-artifacts/build-artifacts.component.ts +++ b/src/app/vnfs/build-artifacts/build-artifacts.component.ts @@ -28,7 +28,7 @@ import * as _ from 'underscore'; import { NotificationsService } from 'angular2-notifications'; import { appConstants } from '../../../constants/app-constants'; -export const ACTIONS_REQUIRED_DROPDOWN = ['Configure', 'ConfigModify', 'ConfigScaleOut', 'DistributeTraffic', 'DistributeTrafficCheck'] +export const ACTIONS_REQUIRED_DROPDOWN = ['Configure', 'ConfigModify', 'ConfigScaleOut', 'DistributeTraffic', 'DistributeTrafficCheck', 'ConfigScaleIn'] @Component({ selector: 'app-build-design', templateUrl: './build-artifacts.component.html', styleUrls: ['./build-artifacts.component.css'] }) @@ -80,7 +80,7 @@ export class BuildDesignComponent implements OnInit { // if (referenceList.hasOwnProperty('template-id') && referenceList['template-id'] !== undefined && referenceList['template-id'] != '') // this.refDataRequiredFiels = true; // else this.refDataRequiredFiels = false; - if(referenceList.action == 'ConfigScaleOut') { + if(referenceList.action == 'ConfigScaleOut' || referenceList.action == 'ConfigScaleIn') { if(reqObj != undefined && reqObj.hasOwnProperty('reqField') && reqObj.reqField != '') this.refDataRequiredFiels = true; else this.refDataRequiredFiels = false; } @@ -112,7 +112,7 @@ export class BuildDesignComponent implements OnInit { else if (this.refList['device-protocol'] == appConstants.DeviceProtocols.blank) { this.notificationsService.error(appConstants.errors.error, appConstants.errors.noDeviceProtocolError); } - else if (this.refList.action === appConstants.Actions.configScaleOut) { + else if (this.refList.action === appConstants.Actions.configScaleOut || this.refList.action === appConstants.Actions.configScaleIn) { this.notificationsService.error(appConstants.errors.error, appConstants.errors.noValidTemplateIdentifierError); } } |