Skip to content

Commit

Permalink
Merge pull request #166 from nmaas-platform/106-add-option-to-manuall…
Browse files Browse the repository at this point in the history
…y-indicate-that-a-given-application-instance-was-upgraded-to-a-new-version

106 add option to manually indicate that a given application instance was upgraded to a new version
  • Loading branch information
llopat authored Jan 23, 2024
2 parents 3a6beda + 08b1134 commit 98a774e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,11 @@ export class AppInstanceComponent implements OnInit, OnDestroy {

public openVersionUpdateModal() {
this.appsService.getApplicationVersions(this.appInstance.application.applicationBase.id).subscribe( versions => {
console.log('App Verions before filter', this.appVersions);
this.appVersions = versions.filter(val => val.state === ApplicationState.ACTIVE || val.state.toString() === ApplicationState.ACTIVE.toString())
console.log('App Verions after filter', this.appVersions);
console.log('App Versions before filter', versions);
this.appVersions = versions.filter(val => val.state.toString() === 'ACTIVE')
console.log('App Versions after filter', this.appVersions);
this.appVersions.sort(this.appVersionCompare)
console.log('App Verions after sort', this.appVersions);
console.log('App Versions after sort', this.appVersions);
})
this.manualUpdateModal.show();
}
Expand Down

0 comments on commit 98a774e

Please sign in to comment.