Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 3c5de31

Browse files
committed
Bugfix: load versions
Related #e5ee8845777dee62d7a15a646952764b4b198288 Fix type ApplicationType parameter
1 parent df5b5b8 commit 3c5de31

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ui/src/app/apps/app-details/app-details.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ export class AppDetailsComponent implements OnInit, OnDestroy {
149149
*/
150150
loadVersions() {
151151
console.log(`Retrieving versions application for ${this.application.name} (${this.application.type}).`);
152-
const busy = this.appsService.getAppVersions(this.application.type, this.application.name)
152+
const busy = this.appsService
153+
.getAppVersions(ApplicationType[this.application.type.toString()], this.application.name)
153154
.pipe(takeUntil(this.ngUnsubscribe$))
154155
.subscribe((data: any) => {
155156
this.application.versions = data;

ui/src/app/apps/app-versions/app-versions.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {SortParams, OrderParams} from '../../shared/components/shared.interface'
1010
import {Subject} from 'rxjs/Subject';
1111
import {takeUntil} from 'rxjs/operators';
1212
import {BusyService} from '../../shared/services/busy.service';
13+
import {ApplicationType} from '../../shared/model/application-type';
1314

1415
/**
1516
* Provides versions for an App Registration
@@ -93,7 +94,8 @@ export class AppVersionsComponent implements OnDestroy {
9394
*/
9495
refresh() {
9596
console.log(`Retrieving versions application for ${this.application.name} (${this.application.type}).`);
96-
const busy = this.appsService.getAppVersions(this.application.type, this.application.name)
97+
const busy = this.appsService
98+
.getAppVersions(ApplicationType[this.application.type.toString()], this.application.name)
9799
.pipe(takeUntil(this.ngUnsubscribe$))
98100
.subscribe((data: any) => {
99101
this.application.versions = data;

0 commit comments

Comments
 (0)