Page MenuHomePhabricator

[web] Show "leave thread" modal from thread menu
ClosedPublic

Authored by jacek on Mar 4 2022, 5:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:25 PM
Unknown Object (File)
Nov 17 2024, 10:40 AM
Unknown Object (File)
Nov 17 2024, 8:34 AM
Unknown Object (File)
Nov 13 2024, 12:36 PM

Details

Summary

Add action on "Leave thread" item in thread menu. It displays modal with confirmation before leaving thread.

Test Plan

Select thread, that can be left (like some community thread) and select "Leave thread" from thread menu.

Diff Detail

Repository
rCOMM Comm
Branch
jacek/menu-actions-enable
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Accepting, but please address my comment before landing

web/chat/thread-menu.react.js
142–148

We have a couple of levels of indentation here, so it would be a good idea to define onConfirm function outside this callback as a separate callback - just to improve the readability.

This revision is now accepted and ready to land.Mar 4 2022, 10:32 AM

Moved onConfirm lambda into separate callback.