Page MenuHomePhabricator

[web] Remove admins tab when there are no admins
ClosedPublic

Authored by tomek on Tue, Sep 17, 2:27 AM.
Tags
None
Referenced Files
F2840734: D13359.id44265.diff
Sun, Sep 29, 7:24 AM
Unknown Object (File)
Sat, Sep 28, 5:07 PM
Unknown Object (File)
Fri, Sep 27, 1:10 PM
Unknown Object (File)
Fri, Sep 27, 9:30 AM
Unknown Object (File)
Fri, Sep 27, 8:42 AM
Unknown Object (File)
Fri, Sep 27, 1:38 AM
Unknown Object (File)
Fri, Sep 27, 12:20 AM
Unknown Object (File)
Thu, Sep 26, 10:57 PM
Subscribers
None

Details

Summary

In thick threads there are no admins, so it doesn't make sense to show an empty tab. Instead of hiding the tab just for thick threads, we can hide the tab every time there are no admins.

with admins.png (778×514 px, 32 KB)

without admins.png (1×1 px, 192 KB)

https://linear.app/comm/issue/ENG-9258/remove-admins-tab-in-thick-threads

Test Plan

Open a members menu in a thread with some admins and check if both tabs appear. Open it in a thick thread and check if only the members tab is present.

Diff Detail

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

Event Timeline

tomek retitled this revision from [web] Remove admins tab when there are. no admins to [web] Remove admins tab when there are no admins.Tue, Sep 17, 2:27 AM
tomek edited reviewers, added: will; removed: bartek, ashoat.
tomek edited the summary of this revision. (Show Details)
tomek requested review of this revision.Tue, Sep 17, 2:44 AM
This revision is now accepted and ready to land.Tue, Sep 17, 9:53 AM