Browse Source

UI: Refactoring

pull/9277/head
Artem Dzhereleiko 3 years ago
parent
commit
d1440a7c65
  1. 1
      ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html
  2. 2
      ui-ngx/src/app/shared/components/entity/entity-list.component.html
  3. 4
      ui-ngx/src/app/shared/components/entity/entity-list.component.ts

1
ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html

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

2
ui-ngx/src/app/shared/components/entity/entity-list.component.html

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

4
ui-ngx/src/app/shared/components/entity/entity-list.component.ts

@ -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…
Cancel
Save