Issue #1781 - Update 'Save' button behavior on view-only pages (Case-…#1960
Issue #1781 - Update 'Save' button behavior on view-only pages (Case-…#1960gcheung-SF wants to merge 4 commits intodevfrom
Conversation
…Control, Proband Individual, and Experimental Data).
|
Steps to test #1781 in different evidences: To test "Save" button is disabled when nothing can be changed.
To test warning message if no change is made when "Save" button is clicked.
To test same behavior for Proland Individual evidence;
To test same behavior for Experimental Data:
|
Just wanted to clarify for others testing this, although maybe I am missing something. I was successfully able to view the disabled Score input and Save button by completing all of the required fields and NOT selecting a study type. Looks great from there :) |
| this.state.modifiedScore === 'none' && this.state.origScore === null) && | ||
| (this.state.scoreExplanation === this.state.origScoreExplanation || | ||
| this.state.scoreExplanation === '' && this.state.origScoreExplanation === null)) { | ||
| this.setState({scoreError: true, scoreErrorMsg: 'Cannot save because no field has been modified. Please make your changes then save.'}); |
There was a problem hiding this comment.
What do you think about changing the scoreErrorMsg to 'Cannot save because the score/explanation has not been modified..'
Just a small suggestion for clarity!
markmandell
left a comment
There was a problem hiding this comment.
No errors or issues when testing the UI. Let me know what you think about the error text!
…Control, Proband Individual, and Experimental Data).