mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: add default saved message
Now that we do not always do a save on the map itself, we may have no feedback message in case we only save layers.
This commit is contained in:
parent
cbab6e03f8
commit
45a0ec5d42
1 changed files with 6 additions and 0 deletions
|
@ -643,6 +643,12 @@ export default class Umap extends ServerStored {
|
|||
// have changed, we'll be more subtil when we'll remove the
|
||||
// save action
|
||||
this.render(['name', 'user', 'permissions'])
|
||||
if (!this._leafletMap.listens('saved')) {
|
||||
// When we save only layers, we don't have the map feedback message
|
||||
this._leafletMap.on('saved', () => {
|
||||
Alert.success(translate('Map has been saved!'))
|
||||
})
|
||||
}
|
||||
this.fire('saved')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue