From: Dessalines <dessalines@users.noreply.github.com>
Date: Thu, 18 Feb 2021 15:57:00 +0000 (-0500)
Subject: Adding new comment sort. (#175)
X-Git-Url: http://these/git/%7BpictrsAvatarThumbnail%28user.avatar%29%7D?a=commitdiff_plain;h=f764a79cd8e5f253382529c87b75038f8c1446de;p=lemmy-ui.git

Adding new comment sort. (#175)

* Adding new comment sort.

* Updating translations.
---

diff --git a/package.json b/package.json
index eaf476f..a7185a9 100644
--- a/package.json
+++ b/package.json
@@ -67,7 +67,7 @@
     "eslint": "^7.19.0",
     "eslint-plugin-jane": "^9.0.6",
     "husky": "^4.3.8",
-    "lemmy-js-client": "0.9.4",
+    "lemmy-js-client": "0.9.8-rc.3",
     "lint-staged": "^10.5.4",
     "mini-css-extract-plugin": "^1.3.6",
     "node-fetch": "^2.6.1",
diff --git a/src/shared/components/sort-select.tsx b/src/shared/components/sort-select.tsx
index 5620057..9ee513c 100644
--- a/src/shared/components/sort-select.tsx
+++ b/src/shared/components/sort-select.tsx
@@ -51,11 +51,14 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
             <option value={SortType.Active}>{i18n.t('active')}</option>,
           ]}
           <option value={SortType.New}>{i18n.t('new')}</option>
-          {!this.props.hideMostComments && (
+          {!this.props.hideMostComments && [
             <option value={SortType.MostComments}>
               {i18n.t('most_comments')}
-            </option>
-          )}
+            </option>,
+            <option value={SortType.NewComments}>
+              {i18n.t('new_comments')}
+            </option>,
+          ]}
           <option disabled aria-hidden="true">
             ─────
           </option>
diff --git a/yarn.lock b/yarn.lock
index d05106b..0439b7d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5577,10 +5577,10 @@ lcid@^1.0.0:
   dependencies:
     invert-kv "^1.0.0"
 
-lemmy-js-client@0.9.4:
-  version "0.9.4"
-  resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.4.tgz#6430222e4c7029ecc9aae6ff1871ac52c6e768da"
-  integrity sha512-bw+kp7cqzII3aVON8yAgF7v5xtpFHSfs5h+I+h7JgUHnR/9Gs7ENkDwjNXxpJKekJOgkWea7y32370Yu16vyzw==
+lemmy-js-client@0.9.8-rc.3:
+  version "0.9.8-rc.3"
+  resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.8-rc.3.tgz#29973895a768f8fea7cb7acb7d2dd1ca81f6ac9c"
+  integrity sha512-68sLBsfwWLjhNXKg5CmGN5yobeeBG131kOZmP3GG4IYDRje5W84ryyi/KY4I/S6ZdG9s959FGau+QFg5iZTwEQ==
 
 levn@^0.4.1:
   version "0.4.1"