Page MenuHomePhabricator

[web] Add `accountPasswordInputRef` back to `ThreadSettingsDeleteTab`
ClosedPublic

Authored by atul on Apr 25 2022, 11:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 4:56 AM
Unknown Object (File)
Wed, Oct 16, 8:41 AM
Unknown Object (File)
Fri, Oct 11, 7:08 PM
Unknown Object (File)
Fri, Oct 11, 7:02 PM
Unknown Object (File)
Oct 10 2024, 2:32 AM
Unknown Object (File)
Oct 10 2024, 2:32 AM
Unknown Object (File)
Oct 10 2024, 2:32 AM
Unknown Object (File)
Oct 10 2024, 2:32 AM

Details

Summary

Bring back accountPasswordInputRef to ThreadSettingsDeleteTab using the React.useRef() hook.

We clear the input and focus() it on exception in deleteThreadAction.


Depends on D3837

Test Plan
  1. Open ThreadSettingsModal
  2. Navigate to Delete tab
  3. Enter gibberish for password
  4. Ensure that things continue to look/work as expected

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D3838 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

(All the ThreadSettingsModal refactor-related TODOs have been resolved at this point)

atul published this revision for review.Apr 25 2022, 11:13 AM
This revision is now accepted and ready to land.Apr 26 2022, 8:48 AM