mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: call render at end of save
All changes at some point should call render, and render should become more subtle to update only the needed part according to the actual changes
This commit is contained in:
parent
ae79daec7e
commit
a2af7171d9
1 changed files with 4 additions and 2 deletions
|
@ -1104,8 +1104,10 @@ U.Map = L.Map.extend({
|
|||
if (datalayer.isDirty) await datalayer.save()
|
||||
}
|
||||
this.isDirty = false
|
||||
this.renderEditToolbar()
|
||||
this.propagate()
|
||||
// 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')
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue