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

View File

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