summaryrefslogtreecommitdiffstats
path: root/portal-FE-os/src
diff options
context:
space:
mode:
authorSunder Tattavarada <statta@research.att.com>2020-07-27 15:04:23 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-27 15:04:23 +0000
commit5e143ef255badb5e0304dd4370461c5b5b158bde (patch)
treeedb03b7ff3f729c58be3003d2860d253517974a9 /portal-FE-os/src
parentf241a11c8783c6a230a93d28101a62509af9e640 (diff)
parentc1cda6283174db9ab610ce7142222c8a00be5bc9 (diff)
Merge "App Onboarding - Delete app not working"
Diffstat (limited to 'portal-FE-os/src')
-rw-r--r--portal-FE-os/src/app/pages/application-onboarding/application-onboarding.component.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/portal-FE-os/src/app/pages/application-onboarding/application-onboarding.component.ts b/portal-FE-os/src/app/pages/application-onboarding/application-onboarding.component.ts
index a2c759dc..5903d654 100644
--- a/portal-FE-os/src/app/pages/application-onboarding/application-onboarding.component.ts
+++ b/portal-FE-os/src/app/pages/application-onboarding/application-onboarding.component.ts
@@ -114,7 +114,7 @@ export class ApplicationOnboardingComponent implements OnInit {
openAddApplicationModal(rowData: any, action:any) {
console.log("Action : ", action);
- const modalRef = this.ngbModal.open(ApplicationDetailsDialogComponent, { size: 'lg' });
+ const modalRef = this.ngbModal.open(ApplicationDetailsDialogComponent, { size: 'lg', backdrop: 'static', keyboard: false });
modalRef.componentInstance.title = 'Application Details';
modalRef.componentInstance.action = action;
//console.log("selectedData in parent",rowData);
@@ -136,7 +136,7 @@ export class ApplicationOnboardingComponent implements OnInit {
}
deleteApplication(application: IApplications){
- let confirmationMsg = 'You are about to delete this App : ' + application.name+ '. Click OK to continue.';
+ let confirmationMsg = 'You are about to delete this App : ' + application.appName+ '. Click OK to continue.';
this.openInformationModal("Confirmation",confirmationMsg).result.then((result) => {
if (result === 'Ok') {
if(!application || application == null){
@@ -150,7 +150,11 @@ export class ApplicationOnboardingComponent implements OnInit {
this.getOnboardingApps();
}, error => {
console.log(error);
- this.openConfirmationModal('Error', error);
+ if(error && error.status == 405){
+ this.openConfirmationModal('', 'Application : ' + application.appName+ ' can not be deleted as it is associsted with one of the Microservices.');
+ }else{
+ this.openConfirmationModal('Error', error.message);
+ }
});
}
}, (resut) => {