Skip to content

Commit

Permalink
Always use fullwidth table editor
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yohanboniface committed Nov 27, 2023
1 parent 1e419fc commit d47c6f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions umap/static/umap/js/umap.tableeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,9 @@ L.U.TableEditor = L.Class.extend({
this.edit()
}
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({
data: { html: this.table },
className: className,
className: 'umap-table-editor fullwidth dark',
actions: [addButton],
})
this.datalayer.map.fire('dataload', { id: id })
Expand Down

0 comments on commit d47c6f3

Please sign in to comment.