Debug config UI adjustments

This commit is contained in:
mpetrov 2024-11-19 13:35:34 +02:00
parent ed6e3f2154
commit 3471cc99e4
3 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ export class DebugConfigButtonComponent {
@Output() onDebugConfigChanged = new EventEmitter<HasDebugConfig>(); @Output() onDebugConfigChanged = new EventEmitter<HasDebugConfig>();
isDebugAllActive$ = timer(0, SECOND).pipe(map(() => this.debugAllUntil > new Date().getTime()), shareReplay(1)); isDebugAllActive$ = timer(0, SECOND).pipe(map(() => this.debugAllUntil > new Date().getTime() || this.debugAll), shareReplay(1));
readonly maxDebugModeDurationMinutes = getCurrentAuthState(this.store).maxDebugModeDurationMinutes; readonly maxDebugModeDurationMinutes = getCurrentAuthState(this.store).maxDebugModeDurationMinutes;

View File

@ -63,7 +63,7 @@ export class DebugConfigPanelComponent extends PageComponent implements OnInit {
isDebugAllActive$ = timer(0, SECOND).pipe( isDebugAllActive$ = timer(0, SECOND).pipe(
map(() => { map(() => {
this.cd.markForCheck(); this.cd.markForCheck();
return this.debugAllUntil > new Date().getTime(); return this.debugAllUntil > new Date().getTime() || this.debugAll;
}), }),
distinctUntilChanged(), distinctUntilChanged(),
tap(isDebugOn => this.debugAllControl.patchValue(isDebugOn, { emitEvent: false })), tap(isDebugOn => this.debugAllControl.patchValue(isDebugOn, { emitEvent: false })),

View File

@ -1272,9 +1272,9 @@ pre.tb-highlight {
border-radius: 20px; border-radius: 20px;
padding: 0 16px; padding: 0 16px;
&:not(.active) { &:not(.active, :disabled) {
color: rgba(0, 0, 0, 0.76); color: rgba(0, 0, 0, 0.76);
background: rgba(0, 0, 0, 0.06); background-color: rgba(0, 0, 0, 0.06);
} }
&.active:not(:disabled) { &.active:not(:disabled) {