kblincoe / QualOpt_SE701

2 stars 15 forks source link

[Bug] Popup to save changes to new study dialog comes up when all fields are empty #145

Open Nemeritz opened 6 years ago

Nemeritz commented 6 years ago

When creating a new study, the pop-up prompt to discard changes should not appear if all fields are empty. This does not work properly if something is entered into the fields and then deleted. When something is entered into the fields and then deleted the pop-up should not appear as there are only empty strings in the fields.

Steps to Reproduce

This gif shows the steps new

Dependencies This will depend on #129, if #129 was fixed then the user will not be able to press the "Next" button without a valid study name entered. So after #129 is fixed only the first dialog will need to check for valid fields and not the invitation emails dialog.

@softeng-701 I think this is a small issue as there are validations need to be made in the study dialog.

softeng-701 commented 6 years ago

@Nemeritz APPROVED!