Page MenuHomePhabricator

[native] Show actions conditionally

Authored by tomek on May 19 2023, 10:07 AM.
Referenced Files
F909988: D7881.diff
Mon, Dec 4, 10:10 AM
Unknown Object (File)
Sun, Nov 12, 1:57 PM
Unknown Object (File)
Sep 28 2023, 11:21 PM
Unknown Object (File)
Aug 24 2023, 12:33 AM
Unknown Object (File)
Aug 24 2023, 12:32 AM
Unknown Object (File)
Aug 24 2023, 12:29 AM
Unknown Object (File)
Aug 23 2023, 10:51 PM
Unknown Object (File)
Jun 4 2023, 6:36 PM



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

rCOMM Comm
Lint Not Applicable
Tests Not Applicable