TSK-750 - [UI] - Problems to order the access items

This commit is contained in:
Jose Ignacio Recuerda Cambil 2018-12-26 13:34:36 +01:00 committed by Martin Rojas Miguel Angel
parent cdaf0c715a
commit 20fa83f3c9
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
<thead>
<tr>
<th>
<taskana-sort [sortingFields]="sortingFields" (performSorting)="sorting($event)" menuPosition="left"></taskana-sort>
<taskana-sort [sortingFields]="sortingFields" (performSorting)="sorting($event)" menuPosition="left" [defaultSortBy]="'workbasket-key'"></taskana-sort>
</th>
<th class="text-align min-width">Workbasket Key</th>
<th colspan="2" class="text-align">Access Id</th>

View File

@ -38,7 +38,6 @@ export class AccessItemsManagementComponent implements OnInit, OnDestroy {
isGroup: boolean;
groupsKey = 'ou=groups';
accessIdField = this.customFieldsService.getCustomField('Owner', 'workbaskets.access-items.accessId');
custom1Field = this.customFieldsService.getCustomField('Custom 1', 'workbaskets.access-items.custom1');
custom2Field = this.customFieldsService.getCustomField('Custom 2', 'workbaskets.access-items.custom2');
@ -81,7 +80,6 @@ export class AccessItemsManagementComponent implements OnInit, OnDestroy {
private alertService: AlertService,
private errorModalService: ErrorModalService) { }
ngOnInit() {
}

View File

@ -9,6 +9,7 @@ import {Direction, SortingModel} from 'app/models/sorting';
export class SortComponent implements OnInit {
@Input() sortingFields: Map<string, string>;
@Input() menuPosition = 'right';
@Input() defaultSortBy = 'key';
@Output() performSorting = new EventEmitter<SortingModel>();
@ -18,6 +19,7 @@ export class SortComponent implements OnInit {
}
ngOnInit() {
this.sort.sortBy = this.defaultSortBy;
}
changeOrder(sortDirection: string) {