"eslint-plugin-prettier": "^3.3.1",
"husky": "^6.0.0",
"iso-639-1": "^2.1.9",
- "lemmy-js-client": "0.11.0-rc.12",
+ "lemmy-js-client": "0.11.0-rc.13",
"lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^1.4.1",
"node-fetch": "^2.6.1",
</label>
</div>
</div>
+ <div class="form-group">
+ <div class="form-check">
+ <input
+ class="form-check-input"
+ id="user-show-read-posts"
+ type="checkbox"
+ checked={this.state.saveUserSettingsForm.show_read_posts}
+ onChange={linkEvent(this, this.handleUserSettingsShowReadPosts)}
+ />
+ <label class="form-check-label" htmlFor="user-show-read-posts">
+ {i18n.t("show_read_posts")}
+ </label>
+ </div>
+ </div>
<div class="form-group">
<div class="form-check">
<input
i.setState(i.state);
}
+ handleUserSettingsShowReadPosts(i: Person, event: any) {
+ i.state.saveUserSettingsForm.show_read_posts = event.target.checked;
+ i.setState(i.state);
+ }
+
handleUserSettingsShowScoresChange(i: Person, event: any) {
i.state.saveUserSettingsForm.show_scores = event.target.checked;
UserService.Instance.localUserView.local_user.show_scores =
UserService.Instance.localUserView.local_user.show_bot_accounts;
this.state.saveUserSettingsForm.show_scores =
UserService.Instance.localUserView.local_user.show_scores;
+ this.state.saveUserSettingsForm.show_read_posts =
+ UserService.Instance.localUserView.local_user.show_read_posts;
this.state.saveUserSettingsForm.email =
UserService.Instance.localUserView.local_user.email;
this.state.saveUserSettingsForm.bio =
dependencies:
invert-kv "^1.0.0"
-lemmy-js-client@0.11.0-rc.12:
- version "0.11.0-rc.12"
- resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.11.0-rc.12.tgz#b6f80f69425ae9699857f98640a3d5a9697955b1"
- integrity sha512-tAYL6g+OgJcNy4SP0tbN6x/qyScAV5XPVyIYGGZd2FDfVd3VFDvfoesqGBOSryLhW9jDE6YSC09jhNLMyNtMCA==
+lemmy-js-client@0.11.0-rc.13:
+ version "0.11.0-rc.13"
+ resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.11.0-rc.13.tgz#ba59315052b6f67ea034cdee400435ace277d503"
+ integrity sha512-Nh57Euywhq5p4Y/KX1j8yOVNyXwhZLqUlqMk+96R9qQHgiy3xXhUBztXOk1PTE5HvjBPw8FuWyQPxTphIb/vQg==
levn@^0.4.1:
version "0.4.1"