"inferno-router": "^8.2.2",
"inferno-server": "^8.2.2",
"jwt-decode": "^3.1.2",
- "lemmy-js-client": "0.18.1",
+ "lemmy-js-client": "0.19.0-rc.1",
"lodash.isequal": "^4.5.0",
"markdown-it": "^13.0.1",
"markdown-it-container": "^3.0.0",
{I18NextService.i18n.t("sort_type")}
</option>
<option value={"Hot"}>{I18NextService.i18n.t("hot")}</option>,
+ <option value={"Controversial"}>
+ {I18NextService.i18n.t("controversial")}
+ </option>
<option value={"Top"}>{I18NextService.i18n.t("top")}</option>,
<option value={"New"}>{I18NextService.i18n.t("new")}</option>
<option value={"Old"}>{I18NextService.i18n.t("old")}</option>
{I18NextService.i18n.t("active")}
</option>,
]}
+ <option value={"Controversial"}>
+ {I18NextService.i18n.t("controversial")}
+ </option>
<option value={"New"}>{I18NextService.i18n.t("new")}</option>
<option value={"Old"}>{I18NextService.i18n.t("old")}</option>
{!this.props.hideMostComments && [
>
{I18NextService.i18n.t("top")}
</label>
+ <input
+ id={`${radioId}-controversial`}
+ type="radio"
+ className="btn-check"
+ value={"Controversial"}
+ checked={this.state.commentSort === "Controversial"}
+ onChange={linkEvent(this, this.handleCommentSortChange)}
+ />
+ <label
+ htmlFor={`${radioId}-controversial`}
+ className={classNames("btn btn-outline-secondary pointer", {
+ active: this.state.commentSort === "Controversial",
+ })}
+ >
+ {I18NextService.i18n.t("controversial")}
+ </label>
<input
id={`${radioId}-new`}
type="radio"