Page MenuHomePhabricator

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

Authored by atul on Apr 25 2022, 11:10 AM.
Tags
None
Referenced Files
F5092970: D3838.id11884.diff
Sun, Mar 30, 10:45 AM
F5086283: D3838.id12083.diff
Sat, Mar 29, 7:20 PM
Unknown Object (File)
Sat, Mar 29, 3:38 AM
Unknown Object (File)
Fri, Mar 28, 2:12 AM
Unknown Object (File)
Fri, Mar 28, 2:11 AM
Unknown Object (File)
Thu, Mar 27, 5:58 AM
Unknown Object (File)
Mon, Mar 24, 10:50 PM
Unknown Object (File)
Mon, Mar 17, 11:37 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
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