UI: Refactoring
This commit is contained in:
parent
4b00ef6052
commit
e74d6f4534
@ -104,7 +104,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #recipientsList>
|
<ng-template #recipientsList>
|
||||||
<tb-entity-list
|
<tb-entity-list
|
||||||
propagateOnSubscribe
|
syncedIdListPropagator
|
||||||
required
|
required
|
||||||
formControlName="targets"
|
formControlName="targets"
|
||||||
labelText="{{ 'notification.recipients' | translate }}"
|
labelText="{{ 'notification.recipients' | translate }}"
|
||||||
|
|||||||
@ -109,7 +109,7 @@ export class EntityListComponent implements ControlValueAccessor, OnInit, AfterV
|
|||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
@coerceBoolean()
|
@coerceBoolean()
|
||||||
propagateOnSubscribe = false;
|
syncedIdListPropagator = false;
|
||||||
|
|
||||||
@ViewChild('entityInput') entityInput: ElementRef<HTMLInputElement>;
|
@ViewChild('entityInput') entityInput: ElementRef<HTMLInputElement>;
|
||||||
@ViewChild('entityAutocomplete') matAutocomplete: MatAutocomplete;
|
@ViewChild('entityAutocomplete') matAutocomplete: MatAutocomplete;
|
||||||
@ -194,7 +194,7 @@ export class EntityListComponent implements ControlValueAccessor, OnInit, AfterV
|
|||||||
(entities) => {
|
(entities) => {
|
||||||
this.entities = entities;
|
this.entities = entities;
|
||||||
this.entityListFormGroup.get('entities').setValue(this.entities);
|
this.entityListFormGroup.get('entities').setValue(this.entities);
|
||||||
if (this.propagateOnSubscribe) {
|
if (this.syncedIdListPropagator) {
|
||||||
this.propagateChange(this.modelValue);
|
this.propagateChange(this.modelValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user