HomePhabricator
Diffusion Comm 48f285ac58e8

[web] Disable 'Delete' button for threads when the password input is empty

Description

[web] Disable 'Delete' button for threads when the password input is empty

Summary:
Added a check in the disabled property of the delete button to
check if there is an password entered into the input field - if not,
disable the button.

Test Plan:
Tested on web and it works as expected. Handled cases where the
modal is opened for the first time, and also when a password is deleted.
The button remains disabled whenever the input is empty.

Reviewers: atul, jakub, ginsu

Reviewed By: atul, ginsu

Subscribers: ashoat, tomek, abosh

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

Details

Provenance
rohanAuthored on Sep 28 2022, 10:10 AM
Reviewer
atul
Differential Revision
D5249: [web] Disable 'Delete' button for threads when the password input is empty
Parents
rCOMMbccb9fff1e58: Refactor lib/facts files from JSON to JS
Branches
Unknown
Tags
Unknown