hide button when the user does not have permission to create new

pull/8386/head
bsatarnejad 5 years ago
parent 55973bb4a8
commit 69a7048637
  1. 3
      frontend/src/app/modules/calendar/te-calendar/te-calendar.template.html

@ -3,7 +3,8 @@
[attr.data-indicator-name]="'table'"
style="position: relative">
<button class="button te-calendar--create-button"
<button *ngIf="memoizedCreateAllowed"
class="button te-calendar--create-button"
[attr.aria-label]="text.logTime"
(click)="addEventToday()">
<op-icon icon-classes="button--icon icon-log_time"></op-icon>

Loading…
Cancel
Save