UI: debug strategy fixes
This commit is contained in:
parent
8b170f1a34
commit
f67d6279dc
@ -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,
|
||||||
|
|||||||
@ -121,6 +121,7 @@ export class DebugSettingsPanelComponent extends PageComponent implements OnInit
|
|||||||
this.onSettingsApplied.emit({
|
this.onSettingsApplied.emit({
|
||||||
allEnabled: false,
|
allEnabled: false,
|
||||||
failuresEnabled: this.onFailuresControl.value,
|
failuresEnabled: this.onFailuresControl.value,
|
||||||
|
allEnabledUntil: this.allEnabledUntil,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user