diff --git a/src/app/appmarket/appmanagement/app-management-list/appmanagementlist.component.ts b/src/app/appmarket/appmanagement/app-management-list/appmanagementlist.component.ts index d181619fa4e5bf24c019ba4846dd477ce5fa23a4..f15d9cf830ebf803c2efea764ed42a53d3457a94 100644 --- a/src/app/appmarket/appmanagement/app-management-list/appmanagementlist.component.ts +++ b/src/app/appmarket/appmanagement/app-management-list/appmanagementlist.component.ts @@ -120,14 +120,10 @@ export class AppManagementListComponent implements OnInit { } public openRemovalModal(app: ApplicationBase): void { - this.appsService.hasRunningInstances(app.id).subscribe({ - next: hasRunningInstances => { - this.hasRunningInstances = hasRunningInstances; - this.appToRemove = app; - this.confirmRemovalModal.show(); - }, - error: err => console.error(err) - }) + if(app.versions.find(version => version.state === ApplicationState.DELETED)) { + this.hasRunningInstances = true; + } + this.confirmRemovalModal.show(); } public getApplicationInfoJSONWithBase(id: number) {