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)
Wed, Nov 13, 12:36 PM
Unknown Object (File)
Wed, Nov 13, 12:35 PM
Unknown Object (File)
Fri, Nov 8, 12:41 PM
Unknown Object (File)
Tue, Oct 22, 11:15 AM
Unknown Object (File)
Tue, Oct 22, 11:15 AM
Unknown Object (File)
Tue, Oct 22, 11:15 AM
Unknown Object (File)
Tue, Oct 22, 2:03 AM
Unknown Object (File)
Mon, Oct 21, 11:53 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Accepting, but please address my comment before landing

web/chat/thread-menu.react.js
142–148 ↗(On Diff #10070)

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.