chore: remove remaining openPanel/closePanel calls
This commit is contained in:
parent
e3ff769ab9
commit
44bae50c85
2 changed files with 4 additions and 6 deletions
|
@ -598,7 +598,7 @@ U.DataLayer.include({
|
||||||
if (!this.isVisible()) return
|
if (!this.isVisible()) return
|
||||||
if (!confirm(L._('Are you sure you want to delete this layer?'))) return
|
if (!confirm(L._('Are you sure you want to delete this layer?'))) return
|
||||||
this._delete()
|
this._delete()
|
||||||
this.map.ui.closePanel()
|
this.map.editPanel.close()
|
||||||
},
|
},
|
||||||
this
|
this
|
||||||
)
|
)
|
||||||
|
@ -898,10 +898,7 @@ const ControlsMixin = {
|
||||||
'leaflet-control-edit-disable',
|
'leaflet-control-edit-disable',
|
||||||
rightContainer,
|
rightContainer,
|
||||||
L.DomUtil.add('span', '', null, L._('View')),
|
L.DomUtil.add('span', '', null, L._('View')),
|
||||||
function (e) {
|
this.disableEdit,
|
||||||
this.disableEdit(e)
|
|
||||||
this.ui.closePanel()
|
|
||||||
},
|
|
||||||
this
|
this
|
||||||
)
|
)
|
||||||
L.DomEvent.on(
|
L.DomEvent.on(
|
||||||
|
|
|
@ -541,7 +541,6 @@ U.Map = L.Map.extend({
|
||||||
} else if (key === U.Keys.E && modifierKey && this.editEnabled && !this.isDirty) {
|
} else if (key === U.Keys.E && modifierKey && this.editEnabled && !this.isDirty) {
|
||||||
L.DomEvent.stop(e)
|
L.DomEvent.stop(e)
|
||||||
this.disableEdit()
|
this.disableEdit()
|
||||||
this.ui.closePanel()
|
|
||||||
}
|
}
|
||||||
if (key === U.Keys.S && modifierKey) {
|
if (key === U.Keys.S && modifierKey) {
|
||||||
L.DomEvent.stop(e)
|
L.DomEvent.stop(e)
|
||||||
|
@ -1571,6 +1570,8 @@ U.Map = L.Map.extend({
|
||||||
this.editedFeature = null
|
this.editedFeature = null
|
||||||
this.editEnabled = false
|
this.editEnabled = false
|
||||||
this.fire('edit:disabled')
|
this.fire('edit:disabled')
|
||||||
|
this.editPanel.close()
|
||||||
|
this.fullPanel.close()
|
||||||
},
|
},
|
||||||
|
|
||||||
hasEditMode: function () {
|
hasEditMode: function () {
|
||||||
|
|
Loading…
Reference in a new issue