mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
fix: always call propagate at end of save (#2226)
Otherwise the renderEditToolbar will reset name and all. fix #2225
This commit is contained in:
commit
d2832be6d5
1 changed files with 4 additions and 3 deletions
|
@ -1049,7 +1049,6 @@ U.Map = L.Map.extend({
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.options.user = data.user
|
this.options.user = data.user
|
||||||
this.renderEditToolbar()
|
|
||||||
if (!this.options.umap_id) {
|
if (!this.options.umap_id) {
|
||||||
this.options.umap_id = data.id
|
this.options.umap_id = data.id
|
||||||
this.permissions.setOptions(data.permissions)
|
this.permissions.setOptions(data.permissions)
|
||||||
|
@ -1087,7 +1086,6 @@ U.Map = L.Map.extend({
|
||||||
} else {
|
} else {
|
||||||
window.location = data.url
|
window.location = data.url
|
||||||
}
|
}
|
||||||
this.propagate()
|
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1106,7 +1104,10 @@ U.Map = L.Map.extend({
|
||||||
if (datalayer.isDirty) await datalayer.save()
|
if (datalayer.isDirty) await datalayer.save()
|
||||||
}
|
}
|
||||||
this.isDirty = false
|
this.isDirty = false
|
||||||
this.renderEditToolbar()
|
// Do a blind render for now, as we are not sure what could
|
||||||
|
// have changed, we'll be more subtil when we'll remove the
|
||||||
|
// save action
|
||||||
|
this.render(['name', 'user', 'permissions'])
|
||||||
this.fire('saved')
|
this.fire('saved')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue