summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
index 70ef4ef8..55bf386b 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts
@@ -39,7 +39,7 @@ export class BusinessOrderComponent implements OnInit {
@Input() showModel: boolean;
@Input() modelParams: any;
- @Output() cancel = new EventEmitter<boolean>();
+ @Output() cancel = new EventEmitter<any>();
comunicationFormItems = COMMUNICATION_FORM_ITEMS;
slicing_order_info = {
name: null,
@@ -83,9 +83,12 @@ export class BusinessOrderComponent implements OnInit {
});
}
- handleCancel(): void {
+ handleCancel(flag): void {
this.showModel = false;
- this.cancel.emit(this.showModel);
+ this.cancel.emit({
+ closeFlag: false,
+ to5gPage: flag
+ });
this.slicing_order_info = {
name: null,
maxNumberofUEs: null,
@@ -151,7 +154,7 @@ export class BusinessOrderComponent implements OnInit {
slicing_order_info: this.slicing_order_info,
};
const csmfSlicingPurchaseFailedCallback = () => {
- this.handleCancel();
+ this.handleCancel(true);
};
this.loading = true;
@@ -179,7 +182,7 @@ export class BusinessOrderComponent implements OnInit {
this.message.create("error", "Network error");
}
this.loading = false;
- this.handleCancel();
+ this.handleCancel(true);
});
}
@@ -198,7 +201,7 @@ export class BusinessOrderComponent implements OnInit {
this.message.create("error", "Network error");
}
this.loading = false;
- this.handleCancel();
+ this.handleCancel(true);
});
}
}