Skip to content

Commit a1eacf4

Browse files
committed
Ensure active sorting is correctly identified
1 parent 546bbd8 commit a1eacf4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/controllers/me/crates.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export default Controller.extend(PaginationMixin, {
1515
totalItems: readOnly('model.meta.total'),
1616

1717
currentSortBy: computed('sort', function() {
18-
return (this.get('sort') === 'downloads') ? 'Downloads' : 'Alphabetical';
18+
if (this.get('sort') === 'downloads') {
19+
return 'All-Time Downloads';
20+
} else if (this.get('sort') === 'recent-downloads') {
21+
return 'Recent Downloads';
22+
} else {
23+
return 'Alphabetical';
24+
}
1925
}),
2026
});

0 commit comments

Comments
 (0)