On closing an editing context, perform the appropriate action, wait for the answer and then display either the error or the result. Switch on the editing initiating elements afterwars.
See also:
http://meta.wikimedia.org/wiki/Wikidata/Development/UI_editing_story
Version: unspecified
Severity: enhancement
Whiteboard: storypoints: 5