Browse Source

Default panel label fix

pull/12267/head
mpetrov 2 years ago
parent
commit
7b3d3d04a4
  1. 2
      ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-button.component.ts
  2. 2
      ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-panel.component.html
  3. 2
      ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-panel.component.ts
  4. 1
      ui-ngx/src/assets/locale/locale.constant-en_US.json

2
ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-button.component.ts

@ -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],

2
ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-panel.component.html

@ -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 }}
}

2
ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-panel.component.ts

@ -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;

1
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -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:",

Loading…
Cancel
Save