]> Untitled Git - lemmy-ui.git/commitdiff
Reopen PR 1420 Feature add three six and nine months options frontend (#1689)
authorc-andy-candies <74613851+c-andy-candies@users.noreply.github.com>
Fri, 7 Jul 2023 17:37:50 +0000 (19:37 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jul 2023 17:37:50 +0000 (13:37 -0400)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
src/shared/components/common/sort-select.tsx
src/shared/utils/app/convert-comment-sort-type.ts

index 4d03ab5d662fcfade85a738f5a67867a43f68f03..088f45ed0b3ef97f7e6144e3833dac3908db9385 100644 (file)
@@ -79,6 +79,15 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
           <option value={"TopMonth"}>
             {I18NextService.i18n.t("top_month")}
           </option>
+          <option value={"TopThreeMonths"}>
+            {I18NextService.i18n.t("top_three_months")}
+          </option>
+          <option value={"TopSixMonths"}>
+            {I18NextService.i18n.t("top_six_months")}
+          </option>
+          <option value={"TopNineMonths"}>
+            {I18NextService.i18n.t("top_nine_months")}
+          </option>
           <option value={"TopYear"}>{I18NextService.i18n.t("top_year")}</option>
           <option value={"TopAll"}>{I18NextService.i18n.t("top_all")}</option>
         </select>
index 665ab46269aa99451b2a0e823829f8106a206f25..2f920d4de205d9a4752da0612c39681448be3807 100644 (file)
@@ -11,6 +11,9 @@ export default function convertCommentSortType(
     case "TopDay":
     case "TopWeek":
     case "TopMonth":
+    case "TopThreeMonths":
+    case "TopSixMonths":
+    case "TopNineMonths":
     case "TopYear": {
       return "Top";
     }