Browse Source
Merge pull request #12165 from maxunbearable/feature/rule-node-debug-ui-adjs
UI: debug strategy fixes
pull/12138/head
Andrew Shvayka
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
4 deletions
-
ui-ngx/src/app/modules/home/components/debug-settings/debug-settings-button.component.ts
-
ui-ngx/src/app/modules/home/components/debug-settings/debug-settings-panel.component.ts
|
|
|
@ -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, |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|