Page MenuHomePhabricator

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

Authored by atul on Apr 25 2022, 11:10 AM.
Tags
None
Referenced Files
F2736664: D3838.diff
Tue, Sep 17, 4:42 PM
Unknown Object (File)
Mon, Sep 9, 7:07 AM
Unknown Object (File)
Sun, Sep 1, 10:51 PM
Unknown Object (File)
Sun, Sep 1, 12:19 AM
Unknown Object (File)
Wed, Aug 21, 8:21 PM
Unknown Object (File)
Aug 5 2024, 7:34 PM
Unknown Object (File)
Aug 2 2024, 11:58 AM
Unknown Object (File)
Aug 2 2024, 11:58 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