mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
show "You have unsaved changes" message also in save mode
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user