mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
100553: Explicitly request EditInPlaceFieldComponent's metadata field suggestions with the sort by fieldName,ASC
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
(clickSuggestion)="update(suggestionControl)"
|
||||
(typeSuggestion)="update(suggestionControl)"
|
||||
(dsClickOutside)="checkValidity(suggestionControl)"
|
||||
(findSuggestions)="findMetadataFieldSuggestions($event, { elementsPerPage: 10 })"
|
||||
(findSuggestions)="findMetadataFieldSuggestions($event, { elementsPerPage: 10, sort: defaultMetadataSort })"
|
||||
#suggestionControl="ngModel"
|
||||
[valid]="(valid | async) !== false"
|
||||
dsAutoFocus autoFocusSelector=".suggestion_input"
|
||||
|
@@ -16,6 +16,7 @@ import { followLink } from '../../../../shared/utils/follow-link-config.model';
|
||||
import { FieldUpdate } from '../../../../core/data/object-updates/field-update.model';
|
||||
import { FieldChangeType } from '../../../../core/data/object-updates/field-change-type.model';
|
||||
import { FindListOptions } from '../../../../core/data/find-list-options.model';
|
||||
import { SortDirection, SortOptions } from '../../../../core/cache/models/sort-options.model';
|
||||
|
||||
@Component({
|
||||
// eslint-disable-next-line @angular-eslint/component-selector
|
||||
@@ -57,6 +58,8 @@ export class EditInPlaceFieldComponent implements OnInit, OnChanges {
|
||||
*/
|
||||
metadataFieldSuggestions: BehaviorSubject<InputSuggestion[]> = new BehaviorSubject([]);
|
||||
|
||||
defaultMetadataSort: SortOptions = new SortOptions('fieldName', SortDirection.ASC);
|
||||
|
||||
constructor(
|
||||
private registryService: RegistryService,
|
||||
private objectUpdatesService: ObjectUpdatesService,
|
||||
|
Reference in New Issue
Block a user