Call the PUT endpoint with the updated version of a defendant
Update the store with the updated resource.
Add some spacing between Sterge & Modifica buttons
Notes
I didn't like the way I had to call the dispatcher in the onPropertyEdit, maybe @bogdanconstantinescu can give some input on this one
I got confused by inPropertyUpdate initially because I thought it persists data to the backend, but it just updated the store, that's why I have introduced onPropertyEdit to actually persist it. Not a big fan since they have a similar name, again maybe @bogdanconstantinescu can comment on this one :)
The PUT endpoint doesn't return the resource id correctly so I did a temporary fix until the backend is fixed. Should I open a ticket on the API?
Description of the Change
PUT
endpoint with the updated version of a defendantSterge
&Modifica
buttonsNotes
I didn't like the way I had to call the dispatcher in the
onPropertyEdit
, maybe @bogdanconstantinescu can give some input on this oneI got confused by
inPropertyUpdate
initially because I thought it persists data to the backend, but it just updated the store, that's why I have introducedonPropertyEdit
to actually persist it. Not a big fan since they have a similar name, again maybe @bogdanconstantinescu can comment on this one :)The
PUT
endpoint doesn't return the resource id correctly so I did a temporary fix until the backend is fixed. Should I open a ticket on the API?