To reduce race conditions. When a local item gets edited/created, the local state will get locked until manually click the submit (Speichern) / drop (Löschen/Abbrechen) buttons.
In other words: Let the user control state.
Done:
Replaced input events with submit events.
Add isLocked state on FullNameArray.
Add disabled state to FullNameField and TextField.
Disable text fields in the alternative names array.
If there is a name to edit, show an enabled text field.
Buttons for saving and canceling/deleting for the full name to edit.
In GitLab by @PhilipRoeggla on Mar 11, 2022, 14:16
Merges 35-frontend-does-not-accept-an-empty-alternativenames-array-2 -> dev-backup
To reduce race conditions. When a local item gets edited/created, the local state will get locked until manually click the submit (Speichern) / drop (Löschen/Abbrechen) buttons.
In other words: Let the user control state.
Done:
isLocked
state on FullNameArray.FullNameField
andTextField
.Tags: Issue #35, [skip ci]
Closes #35