Update to Angular 10

This commit is contained in:
piotrpekala7
2020-06-30 10:42:31 +02:00
parent 7c4e745075
commit c8104a577f
48 changed files with 153 additions and 105 deletions

View File

@ -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(

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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>,

View File

@ -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;

View File

@ -40,7 +40,7 @@ export class ConfiguratorDialogQemuComponent implements OnInit {
};
dialogRefQemuImageCreator;
@ViewChild("customAdapters", {static: false}) customAdapters: CustomAdaptersTableComponent;
@ViewChild("customAdapters") customAdapters: CustomAdaptersTableComponent;
constructor(
private dialog: MatDialog,

View File

@ -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>,

View File

@ -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>,

View File

@ -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;

View File

@ -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();

View File

@ -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