UI: debug strategy fixes
This commit is contained in:
parent
8b170f1a34
commit
f67d6279dc
@ -62,9 +62,9 @@ export class DebugSettingsButtonComponent implements ControlValueAccessor {
|
||||
disabled = false;
|
||||
|
||||
isDebugAllActive$ = this.debugSettingsFormGroup.get('allEnabled').valueChanges.pipe(
|
||||
startWith(this.debugSettingsFormGroup.get('allEnabled').value),
|
||||
switchMap(value => {
|
||||
if (value) {
|
||||
startWith(null),
|
||||
switchMap(() => {
|
||||
if (this.allEnabled) {
|
||||
return of(true);
|
||||
} else {
|
||||
return timer(0, SECOND).pipe(
|
||||
@ -79,7 +79,7 @@ export class DebugSettingsButtonComponent implements ControlValueAccessor {
|
||||
|
||||
readonly maxDebugModeDurationMinutes = getCurrentAuthState(this.store).maxDebugModeDurationMinutes;
|
||||
|
||||
private propagateChange: (settings: DebugSettings) => void;
|
||||
private propagateChange: (settings: DebugSettings) => void = () => {};
|
||||
|
||||
constructor(private popoverService: TbPopoverService,
|
||||
private renderer: Renderer2,
|
||||
|
||||
@ -121,6 +121,7 @@ export class DebugSettingsPanelComponent extends PageComponent implements OnInit
|
||||
this.onSettingsApplied.emit({
|
||||
allEnabled: false,
|
||||
failuresEnabled: this.onFailuresControl.value,
|
||||
allEnabledUntil: this.allEnabledUntil,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user