ThreatKB
ThreatKB copied to clipboard
If the comment field is filled out, submit the save action for that field prior to saving the underlying artifact.
When filling out the comment field, often times, we forget to hit the plus (+) action to save the comment:
If the user hits 'save' on the artifact on the bottom, the comment is lost. Can we either, detect an unsaved comment and block hitting save -or- auto submit any draft comments on artifact save?
Branch: issue/278-save-comment-on-modal-close
(PR #345)
@pedramamini @danny248
Made it so that if there is an unsaved comment, when saving or canceling the editing modal, the user will be prompted to save the comment first: