From eedac3e312c66499ca5ff9d72388c31b25813225 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Wed, 6 Mar 2019 12:11:34 -0800 Subject: Revert "multiple asible servers support" Some functionality was accidentally removed This reverts commit 611c9da62c2e266f9facd97dc9f340ce311060a3. Change-Id: I1aefbbc0ede8cdda59acc8bdf7b047e506aad813 Signed-off-by: Patrick Brady Issue-ID: APPC-1510 --- .../build-artifacts/build-artifacts.component.ts | 48 +++++++++++----------- 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'src/app/vnfs/build-artifacts/build-artifacts.component.ts') diff --git a/src/app/vnfs/build-artifacts/build-artifacts.component.ts b/src/app/vnfs/build-artifacts/build-artifacts.component.ts index fb1e6fc..d95b478 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'] +export const ACTIONS_REQUIRED_DROPDOWN = ['Configure', 'ConfigModify', 'ConfigScaleOut', 'DistributeTraffic']; @Component({ selector: 'app-build-design', templateUrl: './build-artifacts.component.html', styleUrls: ['./build-artifacts.component.css'] }) export class BuildDesignComponent implements OnInit { @@ -37,7 +37,7 @@ export class BuildDesignComponent implements OnInit { public refDataRequiredFiels: boolean = false; public refList; - constructor (private router: Router, private notificationsService: NotificationsService) { + constructor(private router: Router, private notificationsService: NotificationsService) { } ngOnInit() { @@ -70,31 +70,33 @@ export class BuildDesignComponent implements OnInit { } } - public getRefData(referenceList, reqObj?) { + public getRefData( referenceList, reqObj?) { + console.log( "getRefData: start: referenceList.action:["+ + referenceList.action+"]"); this.refList = referenceList; - if (referenceList.action !== '' && referenceList.scope['vnf-type'] !== '' && referenceList['device-protocol'] !== '') { - if(ACTIONS_REQUIRED_DROPDOWN.indexOf(referenceList.action) > -1) { - //if (referenceList.action === 'ConfigScaleOut') { - //console.log(typeof reqObj, selectedIdentifier) - // if (referenceList.hasOwnProperty('template-id') && referenceList['template-id'] !== undefined && referenceList['template-id'] != '') - // this.refDataRequiredFiels = true; - // else this.refDataRequiredFiels = false; - if(referenceList.action == 'ConfigScaleOut') { - if(reqObj != undefined && reqObj.hasOwnProperty('reqField') && reqObj.reqField != '') this.refDataRequiredFiels = true; - else this.refDataRequiredFiels = false; - } - - // else if( referenceList.action == 'Configure' || referenceList.action == 'ConfigModify' ) { - // if(referenceList.displayVnfc == 'false') this.refDataRequiredFiels = true; - // else if( referenceList.displayVnfc != 'false' && referenceList.vnfcIdentifier ) this.refDataRequiredFiels = true; - // } - - else this.refDataRequiredFiels = true; + if( referenceList.action !== '' && + referenceList.scope['vnf-type'] !== '' && + referenceList['device-protocol'] !== '' ) + { + if( ACTIONS_REQUIRED_DROPDOWN.indexOf(referenceList.action) > -1) + { + if( referenceList.action == 'ConfigScaleOut') + { + if( reqObj != undefined && reqObj.hasOwnProperty('reqField') && + reqObj.reqField != '' + ) + this.refDataRequiredFiels = true; + else + this.refDataRequiredFiels = false; } - else this.refDataRequiredFiels = true; + else + this.refDataRequiredFiels = true; + } + else + this.refDataRequiredFiels = true; } else { - this.refDataRequiredFiels = false; + this.refDataRequiredFiels = false; } } -- cgit 1.2.3-korg