mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-23 08:55:32 +00:00
Support for editing config files - IOU & routers
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
<button mat-menu-item (click)="editConfig()">
|
||||
<button mat-menu-item
|
||||
*ngIf="node.node_type==='vpcs' || node.node_type==='iou' || node.node_type==='dynamips'"
|
||||
(click)="editConfig()">
|
||||
<mat-icon>settings</mat-icon>
|
||||
<span>Edit config</span>
|
||||
</button>
|
||||
|
@ -1,4 +1,6 @@
|
||||
<button mat-menu-item (click)="exportConfig()">
|
||||
<button mat-menu-item
|
||||
*ngIf="node.node_type==='vpcs' || node.node_type==='dynamips' || node.node_type==='iou'"
|
||||
(click)="exportConfig()">
|
||||
<mat-icon>call_made</mat-icon>
|
||||
<span>Export config</span>
|
||||
</button>
|
||||
|
@ -16,7 +16,7 @@ export class ExportConfigActionComponent {
|
||||
) {}
|
||||
|
||||
exportConfig() {
|
||||
this.nodeService.getConfiguration(this.server, this.node).subscribe((config: any) => {
|
||||
this.nodeService.getStartupConfiguration(this.server, this.node).subscribe((config: any) => {
|
||||
this.downloadByHtmlTag(config);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user