test+web: fix test suite and remove redundant privacy checkbox
All checks were successful
CI / test (push) Successful in 25s
All checks were successful
CI / test (push) Successful in 25s
This commit is contained in:
@@ -357,23 +357,6 @@ export function SettingsPanel({ open, onClose }: Props) {
|
||||
{savingPrivacy ? "Saving..." : "Save privacy settings"}
|
||||
</button>
|
||||
</section>
|
||||
<section className="rounded border border-slate-700/70 bg-slate-800/50 p-3">
|
||||
<CheckboxOption
|
||||
checked={allowPrivateMessages}
|
||||
label="Who can send me messages? (Everybody)"
|
||||
onChange={async (checked) => {
|
||||
setAllowPrivateMessages(checked);
|
||||
setSavingPrivacy(true);
|
||||
try {
|
||||
const updated = await updateMyProfile({ allow_private_messages: checked });
|
||||
useAuthStore.setState({ me: updated as AuthUser });
|
||||
} finally {
|
||||
setSavingPrivacy(false);
|
||||
}
|
||||
}}
|
||||
disabled={savingPrivacy}
|
||||
/>
|
||||
</section>
|
||||
<section className="rounded border border-slate-700/70 bg-slate-800/50 p-3">
|
||||
<div className="mb-2 flex items-center justify-between">
|
||||
<p className="text-xs uppercase tracking-wide text-slate-400">Two-Factor Authentication</p>
|
||||
|
||||
Reference in New Issue
Block a user