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)
Sat, Nov 9, 10:48 PM
Unknown Object (File)
Sat, Nov 9, 2:56 PM
Unknown Object (File)
Sat, Nov 9, 2:43 PM
Unknown Object (File)
Sat, Nov 9, 7:26 AM
Unknown Object (File)
Tue, Nov 5, 4:56 AM
Unknown Object (File)
Oct 16 2024, 8:41 AM
Unknown Object (File)
Oct 11 2024, 7:08 PM
Unknown Object (File)
Oct 11 2024, 7:02 PM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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