diff options
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order')
2 files changed, 10 insertions, 7 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html index 74069f69..9ad0d4e6 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.html @@ -1,4 +1,4 @@ -<nz-modal [(nzVisible)]="showModel" nzTitle="Create Communication Service" (nzOnCancel)="handleCancel()" nzWidth="80%" +<nz-modal [(nzVisible)]="showModel" nzTitle="Create Communication Service" (nzOnCancel)="handleCancel(false)" nzWidth="80%" [nzFooter]="modalFooter"> <div class="subnet_params_container"> <form nz-form> 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); }); } } |