Commit a53e7a63 authored by Curtis Adam's avatar Curtis Adam

Merge branch '142-only-show-the-cut-paste-dialogue-if-the-user-is-logged-in' into 'develop'

Resolve "Only show the cut & paste dialogue if the user is logged in"

Closes #142

See merge request !127
parents 234c8cd8 b6019b1c
Pipeline #30037 failed with stage
in 6 minutes and 10 seconds
......@@ -103,18 +103,18 @@
</div>
<context-menu>
<ng-template *ngIf="noItemHovered() && noItemCut()" contextMenuItem [enabled]="authService.isLoggedIn()" (execute)="addPoi()">Add
<ng-template *ngIf="noItemHovered() && noItemCut() && authService.isLoggedIn()" contextMenuItem (execute)="addPoi()">Add
{{poiModelDefinition.titleSingular}} here
</ng-template>
<ng-template *ngIf="canCutPoi()" contextMenuItem [enabled]="authService.isLoggedIn()" (execute)="cutPoi()">Cut
<ng-template *ngIf="canCutPoi() && authService.isLoggedIn()" contextMenuItem (execute)="cutPoi()">Cut
{{poiModelDefinition.titleSingular}}
</ng-template>
<ng-template *ngIf="canPastePoi()" contextMenuItem [enabled]="authService.isLoggedIn()" (execute)="pastePoi()">Paste
<ng-template *ngIf="canPastePoi() && authService.isLoggedIn()" contextMenuItem (execute)="pastePoi()">Paste
{{poiModelDefinition.titleSingular}}
</ng-template>
<ng-template *ngIf="!noItemCut()" contextMenuItem [enabled]="authService.isLoggedIn()" (execute)="resetCutPaste()">Cancel Cut & Paste
<ng-template *ngIf="!noItemCut() && authService.isLoggedIn()" contextMenuItem (execute)="resetCutPaste()">Cancel Cut & Paste
</ng-template>
<ng-template contextMenuItem divider="true"></ng-template>
<ng-template *ngIf="authService.isLoggedIn()" contextMenuItem divider="true"></ng-template>
<ng-template contextMenuItem (execute)="setRoutingFromHere()">Route from here</ng-template>
<ng-template contextMenuItem (execute)="setRoutingToHere()">Route to here</ng-template>
</context-menu>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment