fix: fix back button in the layer edit form
This commit is contained in:
parent
45812432fc
commit
acb5a68755
1 changed files with 9 additions and 1 deletions
|
@ -1395,9 +1395,17 @@ U.DataLayer = L.Evented.extend({
|
||||||
'_blank'
|
'_blank'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
const button = L.DomUtil.create('li', '')
|
||||||
|
L.DomUtil.create('i', 'icon icon-16 icon-back', button)
|
||||||
|
button.title = L._('Back to layers')
|
||||||
|
// Fixme: remove me when this is merged and released
|
||||||
|
// https://github.com/Leaflet/Leaflet/pull/9052
|
||||||
|
L.DomEvent.disableClickPropagation(button)
|
||||||
|
L.DomEvent.on(button, 'click', this.map.editDatalayers, this.map)
|
||||||
|
|
||||||
this.map.editPanel.open({
|
this.map.editPanel.open({
|
||||||
content: container,
|
content: container,
|
||||||
actions: [U.Browser.backButton(this.map)],
|
actions: [button],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue