Fix helptext not displayed in anonymous permissions panel
This commit is contained in:
parent
1cefd4e851
commit
e06da18f1e
1 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,9 @@ L.U.MapPermissions = L.Class.extend({
|
||||||
},
|
},
|
||||||
set: function (status) {
|
set: function (status) {
|
||||||
isDirty = status
|
isDirty = status
|
||||||
if (status) self.map.hasDirty = status
|
if (status) {
|
||||||
|
self.map.hasDirty = status
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -58,10 +60,8 @@ L.U.MapPermissions = L.Class.extend({
|
||||||
title = L.DomUtil.create('h4', '', container)
|
title = L.DomUtil.create('h4', '', container)
|
||||||
if (this.isAnonymousMap()) {
|
if (this.isAnonymousMap()) {
|
||||||
if (this.options.anonymous_edit_url) {
|
if (this.options.anonymous_edit_url) {
|
||||||
const helpText = L._('Secret edit link is:<br>{link}', {
|
const helpText = `${L._('Secret edit link:')}<br>${this.options.anonymous_edit_url}`
|
||||||
link: this.options.anonymous_edit_url,
|
L.DomUtil.add('p', 'help-text', container, helpText)
|
||||||
})
|
|
||||||
L.DomUtil.create('p', 'help-text', container, helpText)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.isOwner()) {
|
if (this.isOwner()) {
|
||||||
|
|
Loading…
Reference in a new issue