Browse Source

UI: Remove default placeholder

pull/9277/head
Artem Dzhereleiko 3 years ago
parent
commit
8064993c66
  1. 2
      ui-ngx/src/app/shared/components/entity/entity-list.component.html
  2. 2
      ui-ngx/src/app/shared/components/entity/entity-list.component.ts

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 : '' }}"
<input matInput type="text" placeholder="{{ !disabled && placeholderText ? placeholderText : '' }}"
#entityInput
(focusin)="onFocus()"
formControlName="entity"

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

@ -68,7 +68,7 @@ export class EntityListComponent implements ControlValueAccessor, OnInit, AfterV
labelText = this.translate.instant('entity.entity-list');
@Input()
placeholderText = this.translate.instant('entity.entity-list');
placeholderText: string;
@Input()
requiredText = this.translate.instant('entity.entity-list-empty');

Loading…
Cancel
Save