small fix
This commit is contained in:
parent
8f3dbe0ccd
commit
d4dcc76391
|
@ -25,7 +25,7 @@ export class DmpContactPrefillDialogComponent extends BaseComponent {
|
||||||
singleAutoCompleteDmpAssociatedUserConfiguration: SingleAutoCompleteConfiguration = {
|
singleAutoCompleteDmpAssociatedUserConfiguration: SingleAutoCompleteConfiguration = {
|
||||||
initialItems: (data?: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup()).pipe(map(x => x.items)),
|
initialItems: (data?: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup()).pipe(map(x => x.items)),
|
||||||
filterFn: (searchQuery: string, data?: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(searchQuery)).pipe(map(x => x.items)),
|
filterFn: (searchQuery: string, data?: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(searchQuery)).pipe(map(x => x.items)),
|
||||||
getSelectedItem: (selectedItem: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(null, null, [selectedItem])).pipe(map(x => x.items[0])),
|
getSelectedItem: (selectedItem: any) => this.userService.queryDmpAssociated(this.userService.buildAutocompleteLookup(null, null, [selectedItem.id])).pipe(map(x => x.items[0])),
|
||||||
displayFn: (item: DmpAssociatedUser) => item.name,
|
displayFn: (item: DmpAssociatedUser) => item.name,
|
||||||
subtitleFn: (item: DmpAssociatedUser) => item.email,
|
subtitleFn: (item: DmpAssociatedUser) => item.email,
|
||||||
titleFn: (item: DmpAssociatedUser) => item.name,
|
titleFn: (item: DmpAssociatedUser) => item.name,
|
||||||
|
|
Loading…
Reference in New Issue