summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts')
-rw-r--r--admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts b/admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts
index a275e0be..9090710f 100644
--- a/admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts
+++ b/admin/WebConsole3/frontend/src/app/pages/netboot/netboot.component.ts
@@ -14,7 +14,9 @@ import {Router} from '@angular/router';
})
export class NetbootComponent implements OnInit {
searchText: any;
- netboots: any[];
+ netboots: any[] = [];
+ biosNetboots: any[] = [];
+ uefiNetboots: any[] = [];
tableOptions: any;
// this tells the tabs component which Pages
@@ -43,6 +45,14 @@ export class NetbootComponent implements OnInit {
this.netbootService.list().subscribe(
response => {
this.netboots = response;
+ const self = this;
+ this.netboots.forEach((netboot) => {
+ if (netboot.type && netboot.type === 'uefi') {
+ self.uefiNetboots.push(netboot);
+ } else {
+ self.biosNetboots.push(netboot);
+ }
+ });
},
error => {
this.toaster.pop({type: 'error', title: 'error', body: error});