summaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts/build-artifacts.component.ts
diff options
context:
space:
mode:
authorasgar <ma926a@us.att.com>2019-03-01 15:32:47 +0530
committerTakamune Cho <takamune.cho@att.com>2019-03-04 19:52:20 +0000
commit611c9da62c2e266f9facd97dc9f340ce311060a3 (patch)
treee471d6c851cefd46ed83380c6e41d20f54fe2666 /src/app/vnfs/build-artifacts/build-artifacts.component.ts
parent9ccb0353f1c59bd7d49ff17c54e5d00c0960ea82 (diff)
multiple asible servers support
multiple asible servers support for CDT Issue-ID: APPC-1510 Change-Id: Id1b1b02274487cfbf6f108a57211a192924a6b08 Signed-off-by: Mohamed Asgar Samiulla <ma926a@us.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.ts48
1 files changed, 23 insertions, 25 deletions
diff --git a/src/app/vnfs/build-artifacts/build-artifacts.component.ts b/src/app/vnfs/build-artifacts/build-artifacts.component.ts
index d95b478..fb1e6fc 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'];
+export const ACTIONS_REQUIRED_DROPDOWN = ['Configure', 'ConfigModify', 'ConfigScaleOut']
@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,33 +70,31 @@ export class BuildDesignComponent implements OnInit {
}
}
- public getRefData( referenceList, reqObj?) {
- console.log( "getRefData: start: referenceList.action:["+
- referenceList.action+"]");
+ public getRefData(referenceList, reqObj?) {
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')
- {
- if( reqObj != undefined && reqObj.hasOwnProperty('reqField') &&
- reqObj.reqField != ''
- )
- this.refDataRequiredFiels = true;
- else
- this.refDataRequiredFiels = false;
+ 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;
}
- else
- this.refDataRequiredFiels = true;
- }
- else
- this.refDataRequiredFiels = true;
+ else this.refDataRequiredFiels = true;
}
else {
- this.refDataRequiredFiels = false;
+ this.refDataRequiredFiels = false;
}
}