Default panel label fix
This commit is contained in:
		
							parent
							
								
									124d3bfc27
								
							
						
					
					
						commit
						7b3d3d04a4
					
				@ -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],
 | 
			
		||||
 | 
			
		||||
@ -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 }}
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user