|
|
@ -62,9 +62,9 @@ export class DebugSettingsButtonComponent implements ControlValueAccessor { |
|
|
disabled = false; |
|
|
disabled = false; |
|
|
|
|
|
|
|
|
isDebugAllActive$ = this.debugSettingsFormGroup.get('allEnabled').valueChanges.pipe( |
|
|
isDebugAllActive$ = this.debugSettingsFormGroup.get('allEnabled').valueChanges.pipe( |
|
|
startWith(this.debugSettingsFormGroup.get('allEnabled').value), |
|
|
startWith(null), |
|
|
switchMap(value => { |
|
|
switchMap(() => { |
|
|
if (value) { |
|
|
if (this.allEnabled) { |
|
|
return of(true); |
|
|
return of(true); |
|
|
} else { |
|
|
} else { |
|
|
return timer(0, SECOND).pipe( |
|
|
return timer(0, SECOND).pipe( |
|
|
@ -79,7 +79,7 @@ export class DebugSettingsButtonComponent implements ControlValueAccessor { |
|
|
|
|
|
|
|
|
readonly maxDebugModeDurationMinutes = getCurrentAuthState(this.store).maxDebugModeDurationMinutes; |
|
|
readonly maxDebugModeDurationMinutes = getCurrentAuthState(this.store).maxDebugModeDurationMinutes; |
|
|
|
|
|
|
|
|
private propagateChange: (settings: DebugSettings) => void; |
|
|
private propagateChange: (settings: DebugSettings) => void = () => {}; |
|
|
|
|
|
|
|
|
constructor(private popoverService: TbPopoverService, |
|
|
constructor(private popoverService: TbPopoverService, |
|
|
private renderer: Renderer2, |
|
|
private renderer: Renderer2, |
|
|
|