Skip to content

Conversation

@RonLek
Copy link
Contributor

@RonLek RonLek commented Jan 18, 2021

Proposed changes (including videos or screenshots)

Disallows showing a success popup when email field is made blank in Edit User and instead shows the relevant error popup.

Screencast.from.Tuesday.19.January.2021.01.44.53.IST.mp4

Issue(s)

Closes #20258

Steps to test or reproduce

  1. Go to Administration -> Users.
  2. Click on any User and click on Edit.
  3. Clear out the prefilled email.
  4. Hit Save.

@dougfabris
Copy link
Member

@RonLek Hey! Thanks for your help. I think it's nice to have either a UI verification on the email field blocking to send the form if the user leaves it blank. Are you interested to improve it?

@RonLek RonLek force-pushed the fix_blank_email_user_edit branch from 8fadcd1 to c245b91 Compare January 19, 2021 19:11
@RonLek
Copy link
Contributor Author

RonLek commented Jan 19, 2021

@dougfabris Thanks! Made changes to disable the Save button on blank email thereby preventing the unnecessary POST request. Please take a look.

@ggazzo ggazzo merged commit de9f5da into RocketChat:develop Jan 21, 2021
@sampaiodiego sampaiodiego mentioned this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Editing User with blank email doesn't raise an error

3 participants