Merge pull request #3788 from openstreetmap/tyrasd-unsavedchangesmessageonsavedialog

Show "You have unsaved changes" message also in save mode
This commit is contained in:
Bryan Housel
2017-01-22 21:38:34 -05:00
committed by GitHub
+3 -2
View File
@@ -131,8 +131,9 @@ export function coreContext() {
};
context.save = function() {
if (inIntro || (mode && mode.id === 'save') || d3.select('.modal').size()) return;
history.save();
if (inIntro || d3.select('.modal').size()) return;
if (!(mode && mode.id === 'save'))
history.save();
if (history.hasChanges()) return t('save.unsaved_changes');
};