HomePhabricator
Diffusion Comm 19bb52c8bc05

[native] Show actions conditionally

Description

[native] Show actions conditionally

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.

Reviewers: bartek, kamil, inka

Reviewed By: kamil

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D7881

Details

Provenance
tomekAuthored on May 17 2023, 7:28 AM
Reviewer
kamil
Differential Revision
D7881: [native] Show actions conditionally
Parents
rCOMMb53517fa3dd7: [native] Implement the UI of manage invite links screen
Branches
Unknown
Tags
Unknown