doSave() calls saveAndUpdateClient() which (asynchronously) saves the form content. Then it resets the form values without knowing if the save operation succeeded. If it fails, the form is no longer dirty (so Save and Cancel buttons are disabled) but the editing state is still set to true.
doSave()
callssaveAndUpdateClient()
which (asynchronously) saves the form content. Then it resets the form values without knowing if the save operation succeeded. If it fails, the form is no longer dirty (so Save and Cancel buttons are disabled) but the editing state is still set to true.