I have a table that’s technically capturing two models - a Campaign Member, and the Lead that’s tied to said Campaign Member.
Editing either of the models is done by opening a drawer. Ideally, I’d like the Cancel and Save buttons for the row to only render when there are unsaved changes to either model. So I threw in render conditions for that.
The initial appearance worked - I made changes, and the Cancel button appeared. Pressed Cancel, and the changes were removed. Perfect. Except, if I made NEW changes, the Cancel button didn’t reappear.
For the action, I’m simply saying “Cancel changes in 2 Models” and calling out both the Campaign Member and the Lead (same models that are referenced in the screenshot). Should I be adding something else to make the Cancel button “re-useable”?