Sets default display-type on 'projector-button'

This commit is contained in:
GabrielMeyer 2019-09-17 17:09:51 +02:00
parent 43c7797226
commit d27532fa3a

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';
}