mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 06:48:09 +00:00
Update to Angular 10
This commit is contained in:
@ -14,7 +14,7 @@ import { ConfigDialogComponent } from '../../dialogs/config-dialog/config-dialog
|
||||
export class ImportConfigActionComponent {
|
||||
@Input() server: Server;
|
||||
@Input() node: Node;
|
||||
@ViewChild('fileInput', {static: false}) fileInput: ElementRef;
|
||||
@ViewChild('fileInput') fileInput: ElementRef;
|
||||
configType: string;
|
||||
|
||||
constructor(
|
||||
|
@ -22,7 +22,7 @@ export class ContextMenuComponent implements OnInit {
|
||||
@Input() project: Project;
|
||||
@Input() server: Server;
|
||||
|
||||
@ViewChild(MatMenuTrigger, {static: false}) contextMenu: MatMenuTrigger;
|
||||
@ViewChild(MatMenuTrigger) contextMenu: MatMenuTrigger;
|
||||
|
||||
topPosition;
|
||||
leftPosition;
|
||||
|
@ -19,7 +19,7 @@ import { NodeToMapNodeConverter } from '../../../cartography/converters/map/node
|
||||
})
|
||||
export class DrawLinkToolComponent implements OnInit, OnDestroy {
|
||||
@Input() links: Link[];
|
||||
@ViewChild(NodeSelectInterfaceComponent, {static: false}) nodeSelectInterfaceMenu: NodeSelectInterfaceComponent;
|
||||
@ViewChild(NodeSelectInterfaceComponent) nodeSelectInterfaceMenu: NodeSelectInterfaceComponent;
|
||||
|
||||
private nodeClicked$: Subscription;
|
||||
|
||||
|
@ -28,7 +28,7 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
@Input() server: Server;
|
||||
@Input() project: Project;
|
||||
|
||||
@ViewChild('console', {static: false}) console: ElementRef;
|
||||
@ViewChild('console') console: ElementRef;
|
||||
|
||||
private version = version;
|
||||
private nodeSubscription: Subscription;
|
||||
|
@ -38,7 +38,7 @@ export class ConfiguratorDialogCloudComponent implements OnInit {
|
||||
ethernetInterface: string = '';
|
||||
ethernetInterfaces: string[] = ['Ethernet 2', 'Ethernet 3'];
|
||||
|
||||
@ViewChild("udpTunnels", {static: false}) udpTunnels: UdpTunnelsComponent;
|
||||
@ViewChild("udpTunnels") udpTunnels: UdpTunnelsComponent;
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ConfiguratorDialogCloudComponent>,
|
||||
|
@ -15,7 +15,7 @@ import { PortsComponent } from '../../../../../components/preferences/common/por
|
||||
styleUrls: ['../configurator.component.scss']
|
||||
})
|
||||
export class ConfiguratorDialogEthernetSwitchComponent implements OnInit {
|
||||
@ViewChild(PortsComponent, {static: false}) portsComponent: PortsComponent;
|
||||
@ViewChild(PortsComponent) portsComponent: PortsComponent;
|
||||
server: Server;
|
||||
node: Node;
|
||||
name: string;
|
||||
|
@ -40,7 +40,7 @@ export class ConfiguratorDialogQemuComponent implements OnInit {
|
||||
};
|
||||
dialogRefQemuImageCreator;
|
||||
|
||||
@ViewChild("customAdapters", {static: false}) customAdapters: CustomAdaptersTableComponent;
|
||||
@ViewChild("customAdapters") customAdapters: CustomAdaptersTableComponent;
|
||||
|
||||
constructor(
|
||||
private dialog: MatDialog,
|
||||
|
@ -25,7 +25,7 @@ export class ConfiguratorDialogVirtualBoxComponent implements OnInit {
|
||||
displayedColumns: string[] = ['adapter_number', 'port_name', 'adapter_type', 'actions'];
|
||||
networkTypes = [];
|
||||
|
||||
@ViewChild("customAdapters", {static: false}) customAdapters: CustomAdaptersTableComponent;
|
||||
@ViewChild("customAdapters") customAdapters: CustomAdaptersTableComponent;
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ConfiguratorDialogVirtualBoxComponent>,
|
||||
|
@ -25,7 +25,7 @@ export class ConfiguratorDialogVmwareComponent implements OnInit {
|
||||
displayedColumns: string[] = ['adapter_number', 'port_name', 'adapter_type', 'actions'];
|
||||
networkTypes = [];
|
||||
|
||||
@ViewChild("customAdapters", {static: false}) customAdapters: CustomAdaptersTableComponent;
|
||||
@ViewChild("customAdapters") customAdapters: CustomAdaptersTableComponent;
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ConfiguratorDialogVmwareComponent>,
|
||||
|
@ -15,7 +15,7 @@ export class NodeSelectInterfaceComponent implements OnInit {
|
||||
@Input() links: Link[];
|
||||
@Output() onChooseInterface = new EventEmitter<any>();
|
||||
|
||||
@ViewChild(MatMenuTrigger, {static: false}) contextMenu: MatMenuTrigger;
|
||||
@ViewChild(MatMenuTrigger) contextMenu: MatMenuTrigger;
|
||||
|
||||
protected topPosition;
|
||||
protected leftPosition;
|
||||
|
@ -109,9 +109,9 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
private scrollEnabled: boolean = false;
|
||||
public isLightThemeEnabled: boolean = false;
|
||||
|
||||
@ViewChild(ContextMenuComponent, {static: false}) contextMenu: ContextMenuComponent;
|
||||
@ViewChild(D3MapComponent, {static: false}) mapChild: D3MapComponent;
|
||||
@ViewChild(ProjectMapMenuComponent, {static: false}) projectMapMenuComponent: ProjectMapMenuComponent;
|
||||
@ViewChild(ContextMenuComponent) contextMenu: ContextMenuComponent;
|
||||
@ViewChild(D3MapComponent) mapChild: D3MapComponent;
|
||||
@ViewChild(ProjectMapMenuComponent) projectMapMenuComponent: ProjectMapMenuComponent;
|
||||
|
||||
private projectMapSubscription: Subscription = new Subscription();
|
||||
|
||||
|
@ -23,7 +23,7 @@ export class WebConsoleComponent implements OnInit, AfterViewInit {
|
||||
public fitAddon: FitAddon = new FitAddon();
|
||||
private copiedText: string = '';
|
||||
|
||||
@ViewChild('terminal', {static: false}) terminal: ElementRef;
|
||||
@ViewChild('terminal') terminal: ElementRef;
|
||||
|
||||
constructor(
|
||||
private consoleService: NodeConsoleService
|
||||
|
Reference in New Issue
Block a user