Page MenuHomePhabricator

[web] Push `changeThreadSettingsAction` down to `ThreadSettingsGeneralTab`
ClosedPublic

Authored by atul on Apr 25 2022, 12:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 4:45 AM
Unknown Object (File)
Wed, Oct 30, 3:50 AM
Unknown Object (File)
Mon, Oct 28, 2:42 AM
Unknown Object (File)
Fri, Oct 11, 7:10 PM
Unknown Object (File)
Fri, Oct 11, 7:10 PM
Unknown Object (File)
Fri, Oct 11, 7:10 PM
Unknown Object (File)
Fri, Oct 11, 7:10 PM
Unknown Object (File)
Fri, Oct 11, 7:09 PM

Details

Summary

Push down changeThreadSettingsAction (and accompanying state/functionality) to ThreadSettingsGeneralTab.

Also push down the "Save" button.

In the next diff will do the same for ThreadSettingsPrivacyTab


Depends on D3840

Test Plan
  1. Open ThreadSettingsModal
  2. Make some changes on the General tab
  3. Make sure that things continue to look/work as expected

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Apr 25 2022, 12:44 PM
tomek added inline comments.
web/modals/threads/thread-settings-general-tab.react.js
165–172

It looks like you can create a new component that renders this button and contains changeThreadSettingsAction. This component could be used here and on privacy tab

This revision is now accepted and ready to land.Apr 26 2022, 9:22 AM
web/modals/threads/thread-settings-general-tab.react.js
165–172

Will give that a shot in a separate diff. There's definitely room here to cut the repetition