Always use fullwidth table editor
Adding a property when table is not in fullwidth is buguish, so let's make it simple. In the future, we'd replace this table editor with a dedicated lib. cf #1363
This commit is contained in:
parent
1e419fc692
commit
d47c6f3214
1 changed files with 1 additions and 5 deletions
|
@ -110,13 +110,9 @@ L.U.TableEditor = L.Class.extend({
|
||||||
this.edit()
|
this.edit()
|
||||||
}
|
}
|
||||||
L.DomEvent.on(addButton, 'click', addProperty, this)
|
L.DomEvent.on(addButton, 'click', addProperty, this)
|
||||||
const className =
|
|
||||||
this.properties.length > 2
|
|
||||||
? 'umap-table-editor fullwidth dark'
|
|
||||||
: 'umap-table-editor dark'
|
|
||||||
this.datalayer.map.ui.openPanel({
|
this.datalayer.map.ui.openPanel({
|
||||||
data: { html: this.table },
|
data: { html: this.table },
|
||||||
className: className,
|
className: 'umap-table-editor fullwidth dark',
|
||||||
actions: [addButton],
|
actions: [addButton],
|
||||||
})
|
})
|
||||||
this.datalayer.map.fire('dataload', { id: id })
|
this.datalayer.map.fire('dataload', { id: id })
|
||||||
|
|
Loading…
Reference in a new issue