]> Untitled Git - lemmy-ui.git/commitdiff
Adding new comment sort. (#175)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 18 Feb 2021 15:57:00 +0000 (10:57 -0500)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 15:57:00 +0000 (10:57 -0500)
* Adding new comment sort.

* Updating translations.

package.json
src/shared/components/sort-select.tsx
yarn.lock

index eaf476f7c878520935bb6b08a096e4e976cf6fc2..a7185a99c926588541c66a593310cd632cb1eedd 100644 (file)
@@ -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",
index 5620057d495df7d9ef043561183d7c18295b342a..9ee513c12c8fd6fe6116d32e804d4652bb154599 100644 (file)
@@ -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>
index d05106bc4c9408a98fd917e175af670eb04a326d..0439b7d44f7401ec52c1ebf84d82dc95fda48ea9 100644 (file)
--- 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"