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 {
@Input() debugLimitsConfiguration: string;
@Input() entityLabel = 'entity';
@Input() entityLabel: string;
debugSettingsFormGroup = this.fb.group({
failuresEnabled: [false],

View File

@ -20,7 +20,7 @@
<div class="hint-container">
<div class="tb-form-hint tb-primary-fill tb-flex center">
@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 {
{{ 'debug-settings.hint.main' | translate }}
}

View File

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

View File

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