chore: remove remaining openPanel/closePanel calls

This commit is contained in:
Yohan Boniface 2024-03-15 11:35:42 +01:00
parent e3ff769ab9
commit 44bae50c85
2 changed files with 4 additions and 6 deletions

View file

@ -598,7 +598,7 @@ U.DataLayer.include({
if (!this.isVisible()) return
if (!confirm(L._('Are you sure you want to delete this layer?'))) return
this._delete()
this.map.ui.closePanel()
this.map.editPanel.close()
},
this
)
@ -898,10 +898,7 @@ const ControlsMixin = {
'leaflet-control-edit-disable',
rightContainer,
L.DomUtil.add('span', '', null, L._('View')),
function (e) {
this.disableEdit(e)
this.ui.closePanel()
},
this.disableEdit,
this
)
L.DomEvent.on(

View file

@ -541,7 +541,6 @@ U.Map = L.Map.extend({
} else if (key === U.Keys.E && modifierKey && this.editEnabled && !this.isDirty) {
L.DomEvent.stop(e)
this.disableEdit()
this.ui.closePanel()
}
if (key === U.Keys.S && modifierKey) {
L.DomEvent.stop(e)
@ -1571,6 +1570,8 @@ U.Map = L.Map.extend({
this.editedFeature = null
this.editEnabled = false
this.fire('edit:disabled')
this.editPanel.close()
this.fullPanel.close()
},
hasEditMode: function () {