mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-07 18:44:13 +00:00
Fix for local server
This commit is contained in:
parent
36fb802454
commit
4c681f5097
@ -27,12 +27,14 @@
|
||||
[drawings]="drawings"
|
||||
></app-move-layer-down-action>
|
||||
<app-start-capture-action
|
||||
*ngIf="!projectService.isReadOnly(project) && drawings.length===0 && nodes.length===0 && links.length===1"
|
||||
*ngIf="!projectService.isReadOnly(project) && isLocalServer
|
||||
&& drawings.length===0 && nodes.length===0 && links.length===1"
|
||||
[server]="server"
|
||||
[link]="links[0]"
|
||||
></app-start-capture-action>
|
||||
<app-stop-capture-action
|
||||
*ngIf="!projectService.isReadOnly(project) && drawings.length===0 && nodes.length===0 && links.length===1"
|
||||
*ngIf="!projectService.isReadOnly(project) && isLocalServer
|
||||
&& drawings.length===0 && nodes.length===0 && links.length===1"
|
||||
[server]="server"
|
||||
[link]="links[0]"
|
||||
></app-stop-capture-action>
|
||||
|
@ -31,6 +31,7 @@ export class ContextMenuComponent implements OnInit {
|
||||
links: Link[] = [];
|
||||
|
||||
hasTextCapabilities: boolean = false;
|
||||
isLocalServer: boolean = false;
|
||||
|
||||
constructor(
|
||||
private sanitizer: DomSanitizer,
|
||||
@ -40,6 +41,7 @@ export class ContextMenuComponent implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.setPosition(0, 0);
|
||||
this.isLocalServer = this.server.location === 'local';
|
||||
}
|
||||
|
||||
public setPosition(top: number, left: number) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user