This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,18 @@ import {Page} from '../../shared/model/page';
8
8
*/
9
9
export class RuntimeApp {
10
10
public deploymentId : String ;
11
- public status : String ;
12
- public appInstances : Page < RuntimeAppInstance > ;
11
+ public state : String ;
12
+ public instances : any ;
13
+ public appInstances : RuntimeAppInstance [ ]
13
14
14
15
constructor (
15
16
deploymentId : String ,
16
- status : String ,
17
- appInstances : Page < RuntimeAppInstance > ) {
17
+ state : String ,
18
+ instances : any ,
19
+ appInstances : RuntimeAppInstance [ ] ) {
18
20
this . deploymentId = deploymentId ;
19
- this . status = status ;
20
- this . appInstances = appInstances
21
+ this . state = state ;
22
+ this . instances = instances ;
23
+ this . appInstances = appInstances ;
21
24
}
22
25
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ <h4 class="modal-title">Instances for app <strong>{{runtimeApp.deploymentId}}</s
39
39
</ div >
40
40
< div class ="modal-body ">
41
41
< ng-template ngFor let-item
42
- [ngForOf] ="runtimeApp.instances._embedded.appInstanceStatusResourceList ">
42
+ [ngForOf] ="runtimeApp.appInstances ">
43
43
< div class ="row ">
44
44
< p > Instance ID: < strong > {{item.instanceId}}</ strong > </ p >
45
45
</ div >
Original file line number Diff line number Diff line change @@ -41,10 +41,12 @@ export class RuntimeAppsService {
41
41
let items : RuntimeApp [ ] ;
42
42
if ( response . _embedded && response . _embedded . appStatusResourceList ) {
43
43
items = response . _embedded . appStatusResourceList as RuntimeApp [ ] ;
44
+ for ( const item of items ) {
45
+ item . appInstances = item . instances . _embedded . appInstanceStatusResourceList ;
46
+ }
44
47
} else {
45
48
items = [ ] ;
46
49
}
47
-
48
50
const page = new Page < RuntimeApp > ( ) ;
49
51
page . items = items ;
50
52
page . totalElements = response . page . totalElements ;
You can’t perform that action at this time.
0 commit comments