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