mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-08 11:38:38 +00:00
parent
f91a5f657f
commit
ab89aa8ec8
@ -96,6 +96,19 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.applianceService.getAppliances(this.server).subscribe((appliances) => {
|
||||||
|
this.appliances = appliances;
|
||||||
|
this.appliances.forEach((appliance) => {
|
||||||
|
if (appliance.docker) appliance.emulator = 'Docker';
|
||||||
|
if (appliance.dynamips) appliance.emulator = 'Dynamips';
|
||||||
|
if (appliance.iou) appliance.emulator = 'Iou';
|
||||||
|
if (appliance.qemu) appliance.emulator = 'Qemu';
|
||||||
|
});
|
||||||
|
this.allAppliances = appliances;
|
||||||
|
this.dataSource = new MatTableDataSource(this.allAppliances);
|
||||||
|
this.dataSource.paginator = this.paginator;
|
||||||
|
});
|
||||||
|
|
||||||
if(!this.server.authToken){
|
if(!this.server.authToken){
|
||||||
this.templateService.list(this.server).subscribe((templates) => {
|
this.templateService.list(this.server).subscribe((templates) => {
|
||||||
this.templates = templates;
|
this.templates = templates;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user