summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-08 18:35:33 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-08 18:35:38 +0800
commite086e469c39aef3617a504ed174b31ce3fc6741a (patch)
tree03e9aa3fa561f0affcc3ce96f3d111cf6f5a304f
parent2f59d78fd5e99ea90a513d06e626f9915f0b945c (diff)
Fix instance instantiation for NS/E2E
Change-Id: I105991cefd8d65c34726fba85161adac801e5b43 Issue-ID: USECASEUI-252 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.html12
-rw-r--r--usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts1
2 files changed, 7 insertions, 6 deletions
diff --git a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.html b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.html
index 10bcba1d..3f642e97 100644
--- a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.html
+++ b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.html
@@ -17,9 +17,9 @@
<div class="model creation-model">
<!-- Create data -->
<div class="top-title">
- <h3 class="title fl">{{createParams.commonParams.templateType}} Instance Creation</h3>
+ <h3 class="title fl">{{createParams.commonParams.templateType}} {{"i18nTextDefine_InstanceCreation" | translate}} </h3>
<div class="fl" style="width: 20%">
- <button class="submit" nz-button (click)="submit()"><span>Create</span></button>
+ <button class="submit" nz-button (click)="submit()"><span> {{"i18nTextDefine_Create" | translate}} </span></button>
<button class="back" nz-button (click)="goback()">
<i class="anticon anticon-arrow-left" style="transform: scale(1.5)"></i>
</button>
@@ -30,7 +30,7 @@
<div *ngIf="createParams.commonParams.templateType=='E2E Service'" class="baseparms clearfix">
<!--2019.02.21 add-->
<div class="vnf-box">
- <h3>Base</h3>
+ <h3> {{"i18nTextDefine_Base" | translate}} </h3>
<ul class="clearfix">
<li><span>Name:</span> <input nz-input [(ngModel)]="service.name"></li>
<li><span>Description:</span> <input nz-input [(ngModel)]="service.description"></li>
@@ -39,7 +39,7 @@
</ul>
</div>
<div class="vnf-box" *ngIf="templateParameters.inputs.length>0">
- <h3>template Inputs</h3>
+ <h3>{{"i18nTextDefine_templateInputs" | translate}}</h3>
<ul>
<li *ngFor="let parameter of templateParameters.inputs; let i = index;">
<span *ngIf="parameter.type !== 'vf_location' && parameter.type !== 'sdn_controller'">{{parameter.name}}:</span>
@@ -88,14 +88,14 @@
<div *ngIf="createParams.commonParams.templateType=='Network Service'" class="baseparms clearfix">
<div class="vnf-box">
- <h3>Base</h3>
+ <h3> {{"i18nTextDefine_Base" | translate}} </h3>
<ul class="clearfix">
<li><span>Name:</span> <input nz-input [(ngModel)]="ns_service.nsName"></li>
<li><span>Description:</span> <input nz-input [(ngModel)]="ns_service.description"></li>
</ul>
</div>
<div class="vnf-box" *ngIf="nsTemplateParameters.inputs2.length>0">
- <h4>template Inputs</h4>
+ <h4>{{"i18nTextDefine_templateInputs" | translate}}</h4>
<ul>
<li *ngFor="let parameter of nsTemplateParameters.inputs2; let i = index;">
<span *ngIf="parameter.type !== 'vf_location' && parameter.type !== 'sdn_controller'">{{parameter.name}}:</span>
diff --git a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
index a1db49b9..d5e1a3a0 100644
--- a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
+++ b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts
@@ -218,6 +218,7 @@ export class E2eCreationComponent implements OnInit {
})
this.service.parameters.resources.push(nsService);
})
+ console.log(this.service)
this.service.parameters.requestInputs['orchestrator'] = this.createParams.orchestrator.name;
if(this.createParams.isSol005Interface){
this.service.parameters.requestInputs['isSol005Interface'] = this.createParams.isSol005Interface;