UI: Fix entity autocomplete component.
This commit is contained in:
		
							parent
							
								
									4af57f7f35
								
							
						
					
					
						commit
						e530dec250
					
				@ -83,8 +83,7 @@
 | 
			
		||||
            <tb-entity-autocomplete
 | 
			
		||||
              class="flex flex-1"
 | 
			
		||||
              formControlName="id"
 | 
			
		||||
              [hideLabel]="true"
 | 
			
		||||
              [inlineField]="true"
 | 
			
		||||
              inlineField
 | 
			
		||||
              [placeholder]="'action.set' | translate"
 | 
			
		||||
              [required]="true"
 | 
			
		||||
              [entityType]="ArgumentEntityTypeParamsMap.get(entityType).entityType"
 | 
			
		||||
 | 
			
		||||
@ -23,7 +23,7 @@
 | 
			
		||||
                [appearance]="inlineField ? 'outline' : appearance"
 | 
			
		||||
                [subscriptSizing]="inlineField ? 'dynamic' : subscriptSizing"
 | 
			
		||||
                [class]="additionalClasses">
 | 
			
		||||
  <mat-label *ngIf="!hideLabel && !inlineField">{{ label | translate }}</mat-label>
 | 
			
		||||
  <mat-label *ngIf="!inlineField">{{ label | translate }}</mat-label>
 | 
			
		||||
  <input matInput type="text"
 | 
			
		||||
         #entityInput
 | 
			
		||||
         placeholder="{{ placeholder }}"
 | 
			
		||||
 | 
			
		||||
@ -15,8 +15,6 @@
 | 
			
		||||
///
 | 
			
		||||
 | 
			
		||||
import {
 | 
			
		||||
  AfterViewInit,
 | 
			
		||||
  booleanAttribute,
 | 
			
		||||
  Component,
 | 
			
		||||
  ElementRef,
 | 
			
		||||
  EventEmitter,
 | 
			
		||||
@ -142,12 +140,6 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit
 | 
			
		||||
  @coerceBoolean()
 | 
			
		||||
  allowCreateNew: boolean;
 | 
			
		||||
 | 
			
		||||
  @Input({ transform: booleanAttribute }) hideLabel = false;
 | 
			
		||||
 | 
			
		||||
  @Input({ transform: booleanAttribute }) inlineField = false;
 | 
			
		||||
 | 
			
		||||
  @Input() placeholder: string;
 | 
			
		||||
 | 
			
		||||
  @Input()
 | 
			
		||||
  subscriptSizing: SubscriptSizing = 'fixed';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user