mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 01:35:41 +00:00
parent
d69dd1531b
commit
d4b6f29729
|
@ -113,7 +113,6 @@ interface SettingsState {
|
|||
bot_account?: boolean;
|
||||
show_bot_accounts?: boolean;
|
||||
show_read_posts?: boolean;
|
||||
show_new_post_notifs?: boolean;
|
||||
discussion_languages?: number[];
|
||||
open_links_in_new_tab?: boolean;
|
||||
};
|
||||
|
@ -1093,23 +1092,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
|
|||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div className="input-group mb-3">
|
||||
<div className="form-check">
|
||||
<input
|
||||
className="form-check-input"
|
||||
id="user-show-new-post-notifs"
|
||||
type="checkbox"
|
||||
checked={this.state.saveUserSettingsForm.show_new_post_notifs}
|
||||
onChange={linkEvent(this, this.handleShowNewPostNotifs)}
|
||||
/>
|
||||
<label
|
||||
className="form-check-label"
|
||||
htmlFor="user-show-new-post-notifs"
|
||||
>
|
||||
{I18NextService.i18n.t("show_new_post_notifs")}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div className="input-group mb-3">
|
||||
<div className="form-check">
|
||||
<input
|
||||
|
@ -1496,14 +1478,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
|
|||
);
|
||||
}
|
||||
|
||||
handleShowNewPostNotifs(i: Settings, event: any) {
|
||||
i.setState(
|
||||
s => (
|
||||
(s.saveUserSettingsForm.show_new_post_notifs = event.target.checked), s
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
handleOpenInNewTab(i: Settings, event: any) {
|
||||
i.setState(
|
||||
s => (
|
||||
|
|
Loading…
Reference in a new issue