mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-21 22:27:11 +00:00
parent
d69dd1531b
commit
d4b6f29729
|
@ -113,7 +113,6 @@ interface SettingsState {
|
||||||
bot_account?: boolean;
|
bot_account?: boolean;
|
||||||
show_bot_accounts?: boolean;
|
show_bot_accounts?: boolean;
|
||||||
show_read_posts?: boolean;
|
show_read_posts?: boolean;
|
||||||
show_new_post_notifs?: boolean;
|
|
||||||
discussion_languages?: number[];
|
discussion_languages?: number[];
|
||||||
open_links_in_new_tab?: boolean;
|
open_links_in_new_tab?: boolean;
|
||||||
};
|
};
|
||||||
|
@ -1093,23 +1092,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</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="input-group mb-3">
|
||||||
<div className="form-check">
|
<div className="form-check">
|
||||||
<input
|
<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) {
|
handleOpenInNewTab(i: Settings, event: any) {
|
||||||
i.setState(
|
i.setState(
|
||||||
s => (
|
s => (
|
||||||
|
|
Loading…
Reference in a new issue