Merge pull request #5680 from jwinzer/presence-disabled-fix

Disable presence checkbox
This commit is contained in:
Emanuel Schütze 2020-11-05 22:55:32 +01:00 committed by GitHub
commit 5b84bddc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,10 +134,14 @@
<os-projector-button [object]="user" [menuItem]="true"></os-projector-button>
<!-- Presence -->
<button mat-menu-item (click)="setPresent(user)">
<mat-icon color="accent"> {{ user.is_present ? 'check_box' : 'check_box_outline_blank' }} </mat-icon>
<mat-checkbox
class="mat-menu-item"
(change)="setPresent(user)"
[checked]="user.is_present"
[disabled]="isPresentToggleDisabled(user)"
>
<span>{{ 'Present' | translate }}</span>
</button>
</mat-checkbox>
</ng-template>
</mat-menu>