Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 5809bd3

Browse files
author
vikasrohit
committed
SUP-2582, Upcoming SRMs should be ordered by most recent date
-- Fixed sorting in dashboard (ascending by registrationStartAt) -- Fixed sorting in My SRMs#Upcoming (ascending by codingStartAt) -- Fixed sorting in My SRMs#Past (ascending by codingEndAt)
1 parent 51519bf commit 5809bd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/my-dashboard/srms/srms.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
function getSRMs() {
2323
var params = {
24-
filter: 'status=future',
24+
filter: 'status=future&orderBy=registrationStartAt',
2525
limit: 3
2626
};
2727

app/my-srms/my-srms.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
function changeFilter(filter) {
5454
vm.statusFilter = filter;
55-
vm.orderBy = filter === 'future'? 'startDate': 'endDate';
55+
vm.orderBy = filter === 'future'? 'codingStartAt': 'codingEndAt';
5656
vm.reverseOrder = filter !== 'future';
5757
// update url but don't reload
5858
$state.go($state.$current.name, {status: filter}, {notify: false});

0 commit comments

Comments
 (0)