Adding new comment sort. (#175)

* Adding new comment sort.

* Updating translations.
This commit is contained in:
Dessalines 2021-02-18 10:57:00 -05:00 committed by GitHub
parent 2fe02bec7c
commit f764a79cd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 8 deletions

View 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",

View 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>

View file

@ -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"