Page MenuHomePhabricator

[web] Disable 'change password' button until text inputs are not empty
ClosedPublic

Authored by adar on Dec 1 2022, 7:25 AM.
Tags
None
Referenced Files
F1784408: D5788.id19139.diff
Sat, May 18, 12:33 PM
F1784407: D5788.id19071.diff
Sat, May 18, 12:33 PM
F1784402: D5788.id.diff
Sat, May 18, 12:32 PM
F1784387: D5788.diff
Sat, May 18, 12:27 PM
Unknown Object (File)
Fri, Apr 26, 12:57 AM
Unknown Object (File)
Apr 15 2024, 10:58 PM
Unknown Object (File)
Apr 12 2024, 7:28 AM
Unknown Object (File)
Apr 12 2024, 7:28 AM
Subscribers

Details

Summary

This diff disables the 'Change password' button within user settings until the user has entered text into each of the input fields on the modal. Linked the the linear task ENG-2014

Test Plan

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

adar held this revision as a draft.
adar published this revision for review.Dec 1 2022, 7:44 AM

Not sure if inputDisabled handles this already, but I feel like we should be doing other checks too for example

  • new password and confirm new password are the same
  • current password matches the correct current password

But overall looks good, and I know this wasn't part of the linear task, but might be a good follow-up diff to what we have right now.

This revision is now accepted and ready to land.Dec 1 2022, 2:43 PM

current password matches the correct current password

I don't think we should be doing this validation on the front-end.

new password and confirm new password are the same

We could do this validation before enabling the "Change password" button... but in my experience that check usually happens after the "submit" or "change password" button is pressed.