Commit b6019b1c authored by Curtis Adam's avatar Curtis Adam

Only display admin contextmenu items if the user is logged in

parent 234c8cd8
Pipeline #30033 passed with stage
in 8 minutes and 9 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