From a2af7171d97c45f2466c18b60b7c21b8147880b9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 21 Oct 2024 16:25:07 +0200 Subject: [PATCH] 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 --- umap/static/umap/js/umap.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 04971faf..7c65436f 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -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') },