Code updated

This commit is contained in:
Piotr Pekala
2019-03-26 08:24:12 -07:00
parent d4b09e15d1
commit c694309875
8 changed files with 6 additions and 6 deletions

View File

@ -27,13 +27,13 @@
[drawings]="drawings"
></app-move-layer-down-action>
<app-start-capture-action
*ngIf="!projectService.isReadOnly(project) && isLocalServer
*ngIf="!projectService.isReadOnly(project) && isBundledServer
&& 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) && isLocalServer
*ngIf="!projectService.isReadOnly(project) && isBundledServer
&& drawings.length===0 && nodes.length===0 && links.length===1"
[server]="server"
[link]="links[0]"

View File

@ -31,7 +31,7 @@ export class ContextMenuComponent implements OnInit {
links: Link[] = [];
hasTextCapabilities: boolean = false;
isLocalServer: boolean = false;
isBundledServer: boolean = false;
constructor(
private sanitizer: DomSanitizer,
@ -41,7 +41,7 @@ export class ContextMenuComponent implements OnInit {
ngOnInit() {
this.setPosition(0, 0);
this.isLocalServer = this.server.location === 'local';
this.isBundledServer = this.server.location === 'bundled';
}
public setPosition(top: number, left: number) {