Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

106 add option to manually indicate that a given application instance was upgraded to a new version #166

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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