HomePhabricator
Diffusion Comm 4fd6b754e127

[native] Introduce disable link button

Tags
None
Referenced Files
F558560: light-mode-disable.png
May 25 2023, 7:14 AM
File Not Attached
F551103: disable-button-confirm.png
May 25 2023, 7:14 AM
File Not Attached
F551102: disable-button.png
May 25 2023, 7:14 AM
File Not Attached
Subscribers
None

Description

[native] Introduce disable link button

Summary:
The button is visible only when a link is present.
Clicking the button results in alert being shown where a user is asked to confirm the action.
Confirming results in the link being disabled.

disable-button.png (2×1 px, 166 KB)

disable-button-confirm.png (2×1 px, 695 KB)

light-mode-disable.png (2×1 px, 171 KB)

Depends on D7907

Test Plan:
Check if the button appears only when a link is present.
Check if clicking it results in an alert.
Check if canceling doesn't disable the link.
Check if confirming disables the link.

Reviewers: bartek, kamil, inka

Reviewed By: bartek, kamil

Subscribers: ashoat, atul, ted

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

Details

Provenance
tomekAuthored on May 22 2023, 6:22 AM
Reviewer
bartek
Differential Revision
D7908: [native] Introduce disable link button
Parents
rCOMMdf85a4fbd4b5: [native] Add `enumCell` layout/styling to `CommunityConfiguration`
Branches
Unknown
Tags
Unknown