Merge pull request #5680 from jwinzer/presence-disabled-fix
Disable presence checkbox
This commit is contained in:
commit
5b84bddc2a
@ -134,10 +134,14 @@
|
|||||||
<os-projector-button [object]="user" [menuItem]="true"></os-projector-button>
|
<os-projector-button [object]="user" [menuItem]="true"></os-projector-button>
|
||||||
|
|
||||||
<!-- Presence -->
|
<!-- Presence -->
|
||||||
<button mat-menu-item (click)="setPresent(user)">
|
<mat-checkbox
|
||||||
<mat-icon color="accent"> {{ user.is_present ? 'check_box' : 'check_box_outline_blank' }} </mat-icon>
|
class="mat-menu-item"
|
||||||
|
(change)="setPresent(user)"
|
||||||
|
[checked]="user.is_present"
|
||||||
|
[disabled]="isPresentToggleDisabled(user)"
|
||||||
|
>
|
||||||
<span>{{ 'Present' | translate }}</span>
|
<span>{{ 'Present' | translate }}</span>
|
||||||
</button>
|
</mat-checkbox>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user