mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-10 10:18:51 +00:00
add hours as sorting options
This commit is contained in:
parent
207b19dffe
commit
3ca24607fb
|
@ -66,6 +66,9 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
|
|||
<option disabled aria-hidden="true">
|
||||
─────
|
||||
</option>
|
||||
<option value={"TopHour"}>{i18n.t("top_hour")}</option>
|
||||
<option value={"TopSixHour"}>{i18n.t("top_six_hours")}</option>
|
||||
<option value={"TopTwelveHour"}>{i18n.t("top_twelve_hours")}</option>
|
||||
<option value={"TopDay"}>{i18n.t("top_day")}</option>
|
||||
<option value={"TopWeek"}>{i18n.t("top_week")}</option>
|
||||
<option value={"TopMonth"}>{i18n.t("top_month")}</option>
|
||||
|
|
|
@ -986,6 +986,9 @@ export function commentsToFlatNodes(comments: CommentView[]): CommentNodeI[] {
|
|||
export function convertCommentSortType(sort: SortType): CommentSortType {
|
||||
if (
|
||||
sort == "TopAll" ||
|
||||
sort == "TopHour" ||
|
||||
sort == "TopSixHour" ||
|
||||
sort == "TopTwelveHour" ||
|
||||
sort == "TopDay" ||
|
||||
sort == "TopWeek" ||
|
||||
sort == "TopMonth" ||
|
||||
|
|
Loading…
Reference in a new issue