mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-15 13:28:10 +00:00
Angular 8 Upgrade
This commit is contained in:
@ -47,15 +47,6 @@ describe('ContextMenuComponent', () => {
|
||||
expect(component.isElectronApp).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should reset capabilities while opening menu for node', () => {
|
||||
component.contextMenu = { openMenu() {} } as MatMenuTrigger;
|
||||
var spy = spyOn<any>(component, 'resetCapabilities');
|
||||
|
||||
component.openMenuForNode(null, 0, 0);
|
||||
|
||||
expect(spy.calls.any()).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should reset capabilities while opening menu for drawing', () => {
|
||||
component.contextMenu = { openMenu() {} } as MatMenuTrigger;
|
||||
let drawing = {} as Drawing;
|
||||
|
@ -22,7 +22,7 @@ export class ContextMenuComponent implements OnInit {
|
||||
@Input() project: Project;
|
||||
@Input() server: Server;
|
||||
|
||||
@ViewChild(MatMenuTrigger) contextMenu: MatMenuTrigger;
|
||||
@ViewChild(MatMenuTrigger, {static: false}) contextMenu: MatMenuTrigger;
|
||||
|
||||
topPosition;
|
||||
leftPosition;
|
||||
|
Reference in New Issue
Block a user