mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-02 16:52:50 +00:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { Node } from '../../../../../cartography/models/node';
|
|
import { Project } from '../../../../../models/project';
|
|
import { Server } from '../../../../../models/server';
|
|
import { ConfigEditorDialogComponent } from '../../../node-editors/config-editor/config-editor.component';
|
|
import { MatDialog } from '@angular/material';
|
|
|
|
@Component({
|
|
selector: 'app-edit-config-action',
|
|
templateUrl: './edit-config-action.component.html'
|
|
})
|
|
export class EditConfigActionComponent {
|
|
@Input() server: Server;
|
|
@Input() project: Project;
|
|
@Input() node: Node;
|
|
|
|
constructor(private dialog: MatDialog) {}
|
|
|
|
editConfig() {
|
|
const dialogRef = this.dialog.open(ConfigEditorDialogComponent, {
|
|
width: '600px',
|
|
height: '500px',
|
|
autoFocus: false
|
|
});
|
|
let instance = dialogRef.componentInstance;
|
|
instance.server = this.server;
|
|
instance.project = this.project;
|
|
instance.node = this.node;
|
|
}
|
|
}
|