mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-09 03:52:51 +00:00
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { Component, OnInit, Input } from '@angular/core';
|
|
import { Server } from '../../../../../models/server';
|
|
import { Project } from '../../../../../models/project';
|
|
import { Drawing } from '../../../../../cartography/models/drawing';
|
|
import { MatDialog } from '@angular/material';
|
|
import { TextEditorDialogComponent } from '../../../drawings-editors/text-editor/text-editor.component';
|
|
|
|
|
|
@Component({
|
|
selector: 'app-edit-text-action',
|
|
templateUrl: './edit-text-action.component.html'
|
|
})
|
|
export class EditTextActionComponent implements OnInit {
|
|
@Input() server: Server;
|
|
@Input() project: Project;
|
|
@Input() drawing: Drawing;
|
|
|
|
constructor(
|
|
private dialog: MatDialog
|
|
) {}
|
|
|
|
ngOnInit() {}
|
|
|
|
editText() {
|
|
const dialogRef = this.dialog.open(TextEditorDialogComponent, {
|
|
width: '550px',
|
|
});
|
|
let instance = dialogRef.componentInstance;
|
|
instance.server = this.server;
|
|
instance.project = this.project;
|
|
instance.drawing = this.drawing;
|
|
}
|
|
}
|