X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fperson%2Fsettings.tsx;h=659c77c2081e9f675fbd05b2b9ae1d72f9a7da7e;hb=2efe167f6d5f5cb65a2b749ba2fcee0934b247a3;hp=d024aae222b80081fa9941401443cfdc25353173;hpb=b7ec7ae3110c560968e0cb24a32f1fe9166eec29;p=lemmy-ui.git diff --git a/src/shared/components/person/settings.tsx b/src/shared/components/person/settings.tsx index d024aae..659c77c 100644 --- a/src/shared/components/person/settings.tsx +++ b/src/shared/components/person/settings.tsx @@ -73,6 +73,7 @@ interface SettingsState { show_new_post_notifs?: boolean; discussion_languages?: number[]; generate_totp_2fa?: boolean; + open_links_in_new_tab?: boolean; }; changePasswordForm: { new_password?: string; @@ -264,7 +265,7 @@ export class Settings extends Component { ); } - userSettings(isSelected) { + userSettings(isSelected: boolean) { return (
{ ); } - blockCards(isSelected) { + blockCards(isSelected: boolean) { return (
{ onInput={linkEvent(this, this.handleNewPasswordChange)} showStrength label={I18NextService.i18n.t("new_password")} + isNew />
@@ -334,6 +336,7 @@ export class Settings extends Component { value={this.state.changePasswordForm.new_password_verify} onInput={linkEvent(this, this.handleNewPasswordVerifyChange)} label={I18NextService.i18n.t("verify_password")} + isNew />
@@ -391,7 +394,7 @@ export class Settings extends Component { className="btn btn-sm" onClick={linkEvent( { ctx: this, recipientId: pb.target.id }, - this.handleUnblockPerson + this.handleUnblockPerson, )} data-tippy-content={I18NextService.i18n.t("unblock_user")} > @@ -435,10 +438,10 @@ export class Settings extends Component { className="btn btn-sm" onClick={linkEvent( { ctx: this, communityId: cb.community.id }, - this.handleUnblockCommunity + this.handleUnblockCommunity, )} data-tippy-content={I18NextService.i18n.t( - "unblock_community" + "unblock_community", )} > @@ -587,6 +590,7 @@ export class Settings extends Component { selectedLanguageIds={selectedLangs} multiple={true} showLanguageWarning={true} + showAll={true} showSite onChange={this.handleDiscussionLanguageChange} /> @@ -766,7 +770,7 @@ export class Settings extends Component { } onChange={linkEvent( this, - this.handleSendNotificationsToEmailChange + this.handleSendNotificationsToEmailChange, )} />
+
+
+ + +
+
{this.totpSection()}