diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-20 17:49:13 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-20 17:49:13 -0700 |
commit | a7dedaf273b6fd2ebd9c9b8b9d6a7d227f376797 (patch) | |
tree | ee917c7a406b0a8dc7b9e17539ff4f3194e1b03a /ui/src/utils.ts | |
parent | 3a4505aaab4a3a7a809bacf18af50ac3bec9412d (diff) |
Externalize into sort-select component.
- Fixes #311
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r-- | ui/src/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts index ce221e32..867ff91e 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -166,6 +166,8 @@ export function routeSortTypeToEnum(sort: string): SortType { return SortType.TopWeek; } else if (sort == 'topmonth') { return SortType.TopMonth; + } else if (sort == 'topyear') { + return SortType.TopYear; } else if (sort == 'topall') { return SortType.TopAll; } |