Refactores sorting of assignment-list
- In case of the name the list is sorted by `title` instead of `assignment` - For the case of 'creation date' the list will be sorted by `id`
This commit is contained in:
parent
8bf1dad10e
commit
0c0a3f302b
@ -17,9 +17,10 @@ export class AssignmentSortListService extends BaseSortListService<ViewAssignmen
|
||||
* Define the sort options
|
||||
*/
|
||||
public sortOptions: OsSortingOption<ViewAssignment>[] = [
|
||||
{ property: 'assignment', label: 'Name' },
|
||||
{ property: 'title', label: 'Name' },
|
||||
{ property: 'phase', label: 'Phase' },
|
||||
{ property: 'candidateAmount', label: 'Number of candidates' }
|
||||
{ property: 'candidateAmount', label: 'Number of candidates' },
|
||||
{ property: 'id', label: 'Creation date' }
|
||||
];
|
||||
|
||||
/**
|
||||
@ -39,7 +40,7 @@ export class AssignmentSortListService extends BaseSortListService<ViewAssignmen
|
||||
*/
|
||||
public async getDefaultDefinition(): Promise<OsSortingDefinition<ViewAssignment>> {
|
||||
return {
|
||||
sortProperty: 'assignment',
|
||||
sortProperty: 'title',
|
||||
sortAscending: true
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user