From e06da18f1ed79f3b464d022fa4be77f3201b24d7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 8 Sep 2023 17:14:10 +0200 Subject: [PATCH] Fix helptext not displayed in anonymous permissions panel --- umap/static/umap/js/umap.permissions.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/js/umap.permissions.js b/umap/static/umap/js/umap.permissions.js index 7e7a608a..daa1bc6f 100644 --- a/umap/static/umap/js/umap.permissions.js +++ b/umap/static/umap/js/umap.permissions.js @@ -19,7 +19,9 @@ L.U.MapPermissions = L.Class.extend({ }, set: function (status) { isDirty = status - if (status) self.map.hasDirty = status + if (status) { + self.map.hasDirty = status + } }, }) } catch (e) { @@ -58,10 +60,8 @@ L.U.MapPermissions = L.Class.extend({ title = L.DomUtil.create('h4', '', container) if (this.isAnonymousMap()) { if (this.options.anonymous_edit_url) { - const helpText = L._('Secret edit link is:
{link}', { - link: this.options.anonymous_edit_url, - }) - L.DomUtil.create('p', 'help-text', container, helpText) + const helpText = `${L._('Secret edit link:')}
${this.options.anonymous_edit_url}` + L.DomUtil.add('p', 'help-text', container, helpText) } } else { if (this.isOwner()) {