Page MenuHomePhabricator

[native] Show actions conditionally
ClosedPublic

Authored by tomek on May 19 2023, 10:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 3:51 AM
Unknown Object (File)
Tue, Apr 16, 8:45 AM
Unknown Object (File)
Tue, Apr 16, 8:45 AM
Unknown Object (File)
Mon, Apr 15, 4:02 PM
Unknown Object (File)
Tue, Apr 9, 10:45 PM
Unknown Object (File)
Fri, Apr 5, 4:22 AM
Unknown Object (File)
Fri, Apr 5, 4:22 AM
Unknown Object (File)
Fri, Apr 5, 4:22 AM
Subscribers

Details

Summary

For all the users, if there's a public link, we should show a button for it.
For all the admins, we should always show manage button.
Three dots menu should be visible only when at least one button is visible.

Depends on D7880

Test Plan

Check if:

  1. The three dot's button isn't visible for a normal user when there's no link.
  2. Invite link button should be visible only when there's a link for both normal and admin users.
  3. Manage links button should be always visible for admins.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable