-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/Suggestion(MeasurementTracking):prevent empty sr description when export #3173
Conversation
✅ Deploy Preview for ohif-platform-docs canceled.
|
✅ Deploy Preview for ohif-platform-viewer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov Report
@@ Coverage Diff @@
## master #3173 +/- ##
=======================================
Coverage 38.27% 38.27%
=======================================
Files 82 82
Lines 1348 1348
Branches 303 303
=======================================
Hits 516 516
Misses 666 666
Partials 166 166 Continue to review full report in Codecov by Sentry.
|
Thanks |
@sedghi , please take a look at Daniel's latest commit. |
The upload function is disabled when description is empty as noted in the tests; the button itself is not in the disabled state. As noted in point 2 of my description, I ran into issues with hooks when attempted to implement via state and would appreciate guidance/examples if this is the preferred method and has been implemented elsewhere. |
The measurement button isn't based off the dialog component and states can be passed to it when changed. The dialog however sets the state of the buttons at time of creation via the 'actions' array, which I am struggling to modify on the fly. My attempts revolved around modifying this 'actions' array to pass a disabled state for save button if description is empty; however, that's when I ran into hook issues. |
@sedghi , Currently, when the report name is empty and user clicks "save", nothing is saved. Let me know if this is reasonable for you. It's ok for us. |
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Context
Suggestion to prevent empty description for DICOM SR Report export. Prevent and alert when users attempts to save with empty description.
Questions:
Changes & Results
-use _handleFormSubmit when enter is pressed (so same code is ran)
-add empty description check before allow processing within _handleFormSubmit
-if empty, stop event resolution and send alert
Testing
-> Should ignore and prevent save
-> Should ignore and prevent save
-> Should ignore and prevent save
-> Should ignore and prevent save
-> Should allow save routine to proceed
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment