mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-23 00:49:01 +00:00
Initial implementation
This commit is contained in:
@ -44,6 +44,7 @@ import { MapLink } from '../../cartography/models/map/map-link';
|
||||
import { MapLinkToLinkConverter } from '../../cartography/converters/map/map-link-to-link-converter';
|
||||
import { LinkWidget } from '../../cartography/widgets/link';
|
||||
import { NodeCreatedLabelStylesFixer } from './helpers/node-created-label-styles-fixer';
|
||||
import { MovingTool } from '../../cartography/tools/moving-tool';
|
||||
|
||||
|
||||
@Component({
|
||||
@ -78,6 +79,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
isTextChosen: false,
|
||||
visibility: false
|
||||
};
|
||||
protected isLocked: boolean = false;
|
||||
|
||||
private inReadOnlyMode = false;
|
||||
|
||||
@ -109,6 +111,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
private toolsService: ToolsService,
|
||||
private selectionManager: SelectionManager,
|
||||
private selectionTool: SelectionTool,
|
||||
private movingTool: MovingTool,
|
||||
private recentlyOpenedProjectService: RecentlyOpenedProjectService,
|
||||
private nodeCreatedLabelStylesFixer: NodeCreatedLabelStylesFixer
|
||||
) {}
|
||||
@ -395,6 +398,11 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
||||
imageToUpload.src = window.URL.createObjectURL(file);
|
||||
}
|
||||
|
||||
public changeLockValue() {
|
||||
this.isLocked = !this.isLocked;
|
||||
this.movingTool.setEnabled(this.isLocked);
|
||||
}
|
||||
|
||||
public ngOnDestroy() {
|
||||
this.drawingsDataSource.clear();
|
||||
this.nodesDataSource.clear();
|
||||
|
Reference in New Issue
Block a user