summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r--usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts15
-rw-r--r--usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts7
2 files changed, 6 insertions, 16 deletions
diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts b/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts
index dd7949b4..7b39f1aa 100644
--- a/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts
+++ b/usecaseui-portal/src/app/views/services/intent-based-services/cloud-leased-line/cloud-leased-line.component.ts
@@ -137,22 +137,13 @@ export class CloudLeasedLineComponent implements OnInit {
this.smartCloudLeasedLineShowFlag = true;
}
// smart dialog close
- smartCloudLeasedLineClose(data): void {
+ smartCloudLeasedLineClose(param): void {
this.smartCloudLeasedLineShowFlag = false;
- if (data.cancel) {
+ if (param.cancel) {
return;
}
- this.resolveResult = {
- name: 'test',
- instanceId: '123456',
- accessPointOne: {
- name: 'aaa',
- bandwidth: '20'
- },
- cloudPointName: 'aaa',
- };
-
+ this.resolveResult = param.data;
this.cloudLeasedLineShowFlag = true;
}
// to monitor page
diff --git a/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts b/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts
index 16a3843b..e91c57e7 100644
--- a/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts
+++ b/usecaseui-portal/src/app/views/services/intent-based-services/smart-cloud-leased-modal/smart-cloud-leased-modal.component.ts
@@ -37,10 +37,10 @@ export class SmartCloudLeasedModalComponent implements OnInit {
ngOnChange() {}
- handleCancel(flag): void {
+ handleCancel(flag, data=null): void {
this.samrtCloudLeasedLineShowFlag = false;
this.communicationMessage = "";
- this.resolveEmitter.emit({ "cancel": flag });
+ this.resolveEmitter.emit({ cancel: flag, data: data});
}
handleOk(): void {
@@ -63,8 +63,7 @@ export class SmartCloudLeasedModalComponent implements OnInit {
};
this.myhttp.intentInstancePredict(params).subscribe(
(response) => {
- console.log(response);
- this.handleCancel(false);
+ this.handleCancel(false, response);
},
(err) => {
console.log(err);