OpenSlides/client/src/app/shared/components/projector-button/projector-button.component.html

17 lines
798 B
HTML
Raw Normal View History

2019-02-15 12:17:08 +01:00
<ng-container *osPerms="'core.can_manage_projector'">
<button type="button" *ngIf="!text && !menuItem" mat-mini-fab (click)="onClick($event)"
[ngClass]="isProjected() ? 'projector-active' : 'projector-inactive'">
<mat-icon>videocam</mat-icon>
</button>
<button type="button" *ngIf="text && !menuItem" mat-button (click)="onClick($event)"
2019-02-15 12:17:08 +01:00
[ngClass]="isProjected() ? 'projector-active' : 'projector-inactive'">
<mat-icon>videocam</mat-icon>
{{ text | translate }}
2019-02-15 12:17:08 +01:00
</button>
<button type="button" *ngIf="menuItem" mat-menu-item (click)="onClick()"
2019-02-15 12:17:08 +01:00
[ngClass]="isProjected() ? 'projector-active' : 'projector-inactive'">
<mat-icon>videocam</mat-icon>
{{ (text || 'Project') | translate }}
2019-02-15 12:17:08 +01:00
</button>
</ng-container>