Page MenuHomePhabricator

[web] Move `changeThreadSettingsAction` up from `ThreadSettingsModal` to `ConnectedThreadSettingsModal`
ClosedPublic

Authored by atul on Apr 20 2022, 2:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 11:20 AM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 1:59 PM
Unknown Object (File)
Sat, Nov 16, 4:31 PM
Unknown Object (File)
Sat, Nov 16, 1:29 PM

Details

Summary

Move changeThreadSettingsAction out from inner class component to outer "Connected" functional component.

As part of the work to refactor ThreadSettingsModal... specifically to turn it into a functional component (any day now...)


Depends on D3794

Test Plan
  1. Open ThreadSettingsModal
  2. Mess with the settings
  3. Hit save and make sure things continue to look/work as expected

Diff Detail

Repository
rCOMM Comm
Branch
actuallylandapril21 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/modals/threads/thread-settings-modal.react.js
471–472 ↗(On Diff #11681)
atul requested review of this revision.Apr 20 2022, 3:03 PM
tomek added inline comments.
web/modals/threads/thread-settings-modal.react.js
475 ↗(On Diff #11681)

Only threadInfo.id is used in this callback (except in the invariant). Can we change the deps array to reflect that?

This revision is now accepted and ready to land.Apr 21 2022, 8:50 AM
web/modals/threads/thread-settings-modal.react.js
475 ↗(On Diff #11681)