Move link creation to cartography

This commit is contained in:
ziajka
2018-11-06 08:23:39 +01:00
parent 9106e8bf88
commit d0ecd3b2ef
18 changed files with 134 additions and 51 deletions

View File

@ -0,0 +1,9 @@
<div class="context-menu" [style.left]="leftPosition" [style.top]="topPosition" *ngIf="node">
<span [matMenuTriggerFor]="selectInterfaceMenu"></span>
<mat-menu #selectInterfaceMenu="matMenu">
<button mat-menu-item *ngFor="let port of node.ports" (click)="chooseInterface(port)">
<mat-icon>add_circle_outline</mat-icon>
<span>{{ port.name }}</span>
</button>
</mat-menu>
</div>