Skip to content
Snippets Groups Projects
Commit 2fc96043 authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Merge branch...

Merge branch '211-allow-the-option-to-use-an-arbitrary-application-version-as-a-template-when-adding-a-new-version' into 'develop'

Resolve "Allow the option to use an arbitrary application version as a template when adding a new version"

See merge request !19
parents deacd9e4 5dd5068c
No related branches found
No related tags found
1 merge request!19Resolve "Allow the option to use an arbitrary application version as a template when adding a new version"
...@@ -120,14 +120,10 @@ export class AppManagementListComponent implements OnInit { ...@@ -120,14 +120,10 @@ export class AppManagementListComponent implements OnInit {
} }
public openRemovalModal(app: ApplicationBase): void { public openRemovalModal(app: ApplicationBase): void {
this.appsService.hasRunningInstances(app.id).subscribe({ if(app.versions.find(version => version.state === ApplicationState.DELETED)) {
next: hasRunningInstances => { this.hasRunningInstances = true;
this.hasRunningInstances = hasRunningInstances; }
this.appToRemove = app; this.confirmRemovalModal.show();
this.confirmRemovalModal.show();
},
error: err => console.error(err)
})
} }
public getApplicationInfoJSONWithBase(id: number) { public getApplicationInfoJSONWithBase(id: number) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment