Default panel label fix

This commit is contained in:
mpetrov 2024-12-16 17:42:00 +02:00
parent 124d3bfc27
commit 7b3d3d04a4
4 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,7 @@ import { ControlValueAccessor, FormBuilder, NG_VALUE_ACCESSOR } from '@angular/f
export class EntityDebugSettingsButtonComponent implements ControlValueAccessor { export class EntityDebugSettingsButtonComponent implements ControlValueAccessor {
@Input() debugLimitsConfiguration: string; @Input() debugLimitsConfiguration: string;
@Input() entityLabel = 'entity'; @Input() entityLabel: string;
debugSettingsFormGroup = this.fb.group({ debugSettingsFormGroup = this.fb.group({
failuresEnabled: [false], failuresEnabled: [false],

View File

@ -20,7 +20,7 @@
<div class="hint-container"> <div class="hint-container">
<div class="tb-form-hint tb-primary-fill tb-flex center"> <div class="tb-form-hint tb-primary-fill tb-flex center">
@if (debugLimitsConfiguration) { @if (debugLimitsConfiguration) {
{{ 'debug-settings.hint.main-limited' | translate: { entity: entityLabel, msg: maxMessagesCount, time: (maxTimeFrameDuration | milliSecondsToTimeString: true : true) } }} {{ 'debug-settings.hint.main-limited' | translate: { entity: entityLabel ?? ('debug-settings.entity' | translate), msg: maxMessagesCount, time: (maxTimeFrameDuration | milliSecondsToTimeString: true : true) } }}
} @else { } @else {
{{ 'debug-settings.hint.main' | translate }} {{ 'debug-settings.hint.main' | translate }}
} }

View File

@ -51,7 +51,7 @@ export class EntityDebugSettingsPanelComponent extends PageComponent implements
@Input() popover: TbPopoverComponent<EntityDebugSettingsPanelComponent>; @Input() popover: TbPopoverComponent<EntityDebugSettingsPanelComponent>;
@Input({ transform: booleanAttribute }) failuresEnabled = false; @Input({ transform: booleanAttribute }) failuresEnabled = false;
@Input({ transform: booleanAttribute }) allEnabled = false; @Input({ transform: booleanAttribute }) allEnabled = false;
@Input() entityLabel = 'entity'; @Input() entityLabel: string;
@Input() allEnabledUntil = 0; @Input() allEnabledUntil = 0;
@Input() maxDebugModeDuration: number; @Input() maxDebugModeDuration: number;
@Input() debugLimitsConfiguration: string; @Input() debugLimitsConfiguration: string;

View File

@ -994,6 +994,7 @@
"on-failure": "Failures only (24/7)", "on-failure": "Failures only (24/7)",
"all-messages": "All messages ({{time}})", "all-messages": "All messages ({{time}})",
"failures": "Failures", "failures": "Failures",
"entity": "entity",
"rule-node": "rule node", "rule-node": "rule node",
"hint": { "hint": {
"main": "All node debug messages rate limited with:", "main": "All node debug messages rate limited with:",