Skip to content

Commit

Permalink
default sorting direction should be ascending
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed May 13, 2024
1 parent 09f1f22 commit 8be8df2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/affiliation/affiliations.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class AffiliationsComponent implements OnInit, OnDestroy {
})
this.routeData = this.activatedRoute.data.subscribe((data) => {
this.page = data['queryParams'] ? data['queryParams'].page : 1
this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : false
this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : true
this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'id'
this.loadAll()
})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/member/members.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class MembersComponent implements OnInit {
this.itemsPerPage = ITEMS_PER_PAGE
this.routeData = this.activatedRoute.data.subscribe((data: any) => {
this.page = data['queryParams'] ? data['queryParams'].page : 1
this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : false
this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : true
this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'salesforceId'
})
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/user/users.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class UsersComponent implements OnInit, OnDestroy {
this.itemsPerPage = ITEMS_PER_PAGE
this.routeData = this.activatedRoute.data.subscribe((data) => {
this.page = data['queryParams'] ? data['queryParams'].page : 1
this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : false
this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : true
this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'id'
})
}
Expand Down

0 comments on commit 8be8df2

Please sign in to comment.