Improvements to save flow

- Attempt fast save first, only perform conflict resolution if necessary (re: #3056)
- Block reentry of save, and dont keep focus on save button (closes #4641)
- Refactor modeSave() for code clarity (avoid shared state in closure variables)
This commit is contained in:
Bryan Housel
2018-01-05 14:40:59 -05:00
parent 437893ebb8
commit a63c4a72fe
5 changed files with 230 additions and 187 deletions

View File

@@ -238,6 +238,7 @@ export function uiCommit(context) {
return (n && n.value.length) ? null : true;
})
.on('click.save', function() {
this.blur(); // avoid keeping focus on the button - #4641
dispatch.call('save', this, _changeset);
});