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:
Yohan Boniface 2024-10-21 16:25:07 +02:00
parent ae79daec7e
commit a2af7171d9

View file

@ -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')
},