Skip to content
Snippets Groups Projects
Unverified Commit 09206ca7 authored by Łukasz Łopatowski's avatar Łukasz Łopatowski Committed by GitHub
Browse files

Merge pull request #36 from...

Merge pull request #36 from nmaas-platform/35-on-application-deployment-modal-version-selector-include-only-active-versions

Small fix in aplication deploy
parents 91229b36 3a287e54
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ export class AppInstallModalComponent implements OnInit { ...@@ -42,6 +42,7 @@ export class AppInstallModalComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.app.versions = this.app.versions.filter(version => version.state === ApplicationState.ACTIVE)
this.app.versions.sort((a, b) => a.version.localeCompare(b.version, undefined, {numeric: true})); this.app.versions.sort((a, b) => a.version.localeCompare(b.version, undefined, {numeric: true}));
this.app.versions.reverse(); this.app.versions.reverse();
this.selectedAppVersion = this.app.versions[0].appVersionId; this.selectedAppVersion = this.app.versions[0].appVersionId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment