Debug config UI adjustments
This commit is contained in:
parent
ed6e3f2154
commit
3471cc99e4
@ -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;
|
||||||
|
|
||||||
|
|||||||
@ -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 })),
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user