mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-20 23:55:04 +00:00
Button added
This commit is contained in:
@ -96,6 +96,9 @@
|
|||||||
</mat-checkbox><br/>
|
</mat-checkbox><br/>
|
||||||
<mat-checkbox [ngModel]="gridVisibility" (change)="toggleGrid($event.checked)">
|
<mat-checkbox [ngModel]="gridVisibility" (change)="toggleGrid($event.checked)">
|
||||||
Show grid
|
Show grid
|
||||||
|
</mat-checkbox><br/>
|
||||||
|
<mat-checkbox [ngModel]="project.snap_to_grid" (change)="toggleSnapToGrid($event.checked)">
|
||||||
|
Snap to grid
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
@ -504,6 +504,10 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
this.mapChild.gridVisibility = this.gridVisibility ? 1 : 0;
|
this.mapChild.gridVisibility = this.gridVisibility ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public toggleSnapToGrid(enabled: boolean) {
|
||||||
|
this.project.snap_to_grid = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
private showMessage(msg) {
|
private showMessage(msg) {
|
||||||
if (this.notificationsVisibility) {
|
if (this.notificationsVisibility) {
|
||||||
if (msg.type === 'error') this.toasterService.error(msg.message);
|
if (msg.type === 'error') this.toasterService.error(msg.message);
|
||||||
|
Reference in New Issue
Block a user