mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 10:01:44 +00:00
Option in menu
This commit is contained in:
parent
46c6cd1d7e
commit
a3142c6fb1
@ -129,6 +129,9 @@
|
||||
</mat-checkbox><br/>
|
||||
<mat-checkbox [ngModel]="project.snap_to_grid" (change)="toggleSnapToGrid($event.checked)">
|
||||
Snap to grid
|
||||
</mat-checkbox><br/>
|
||||
<mat-checkbox [ngModel]="mapSettingsService.integrateLinkLabelsToLinks" (change)="toggleIntegrateLinkLabelsToLinks($event.checked)">
|
||||
Integrate link labels to links
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
</mat-menu>
|
||||
|
@ -721,6 +721,10 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
this.project.snap_to_grid = enabled;
|
||||
}
|
||||
|
||||
public toggleIntegrateLinkLabelsToLinks(enabled: boolean) {
|
||||
this.mapSettingsService.integrateLinkLabelsToLinks = enabled;
|
||||
}
|
||||
|
||||
private showMessage(msg) {
|
||||
if (this.notificationsVisibility) {
|
||||
if (msg.type === 'error') this.toasterService.error(msg.message);
|
||||
|
@ -11,6 +11,8 @@ export class MapSettingsService {
|
||||
public logConsoleSubject = new Subject<boolean>();
|
||||
public mapRenderedEmitter = new EventEmitter<boolean>();
|
||||
|
||||
public integrateLinkLabelsToLinks: boolean = true;
|
||||
|
||||
constructor() {
|
||||
this.isLayerNumberVisible = localStorage.getItem('layersVisibility') === 'true' ? true : false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user