Merge pull request #5033 from GabrielInTheWorld/fixProjector

Sets default display-type on 'projector-button'
This commit is contained in:
Emanuel Schütze 2019-09-17 17:47:03 +02:00 committed by GitHub
commit 27bd053d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ export class CountdownTimeComponent implements OnDestroy {
*/
@Input()
public set displayType(displayType: string) {
if (!displayType) {
displayType = 'onlyCountdown';
}
this.showTimeIndicator = displayType === 'countdownAndTimeIndicator' || displayType === 'onlyTimeIndicator';
this.showCountdown = displayType === 'onlyCountdown' || displayType === 'countdownAndTimeIndicator';
}