UI: Refactoring
This commit is contained in:
parent
8064993c66
commit
d1440a7c65
@ -41,6 +41,7 @@
|
||||
formControlName="entityType">
|
||||
</tb-entity-type-select>
|
||||
<tb-entity-list required
|
||||
labelText="{{'entity.entity-list' | translate}}"
|
||||
[entityType]="filterFormGroup.get('entityType').value"
|
||||
formControlName="entityList">
|
||||
</tb-entity-list>
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
{{entity.name}}
|
||||
<mat-icon matChipRemove *ngIf="!disabled">close</mat-icon>
|
||||
</mat-chip-row>
|
||||
<input matInput type="text" placeholder="{{ !disabled && placeholderText ? placeholderText : '' }}"
|
||||
<input matInput type="text" placeholder="{{ !disabled ? placeholderText : '' }}"
|
||||
#entityInput
|
||||
(focusin)="onFocus()"
|
||||
formControlName="entity"
|
||||
|
||||
@ -65,10 +65,10 @@ export class EntityListComponent implements ControlValueAccessor, OnInit, AfterV
|
||||
subType: string;
|
||||
|
||||
@Input()
|
||||
labelText = this.translate.instant('entity.entity-list');
|
||||
labelText: string;
|
||||
|
||||
@Input()
|
||||
placeholderText: string;
|
||||
placeholderText = this.translate.instant('entity.entity-list');
|
||||
|
||||
@Input()
|
||||
requiredText = this.translate.instant('entity.entity-list-empty');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user