wip: remove tabs from browser

This commit is contained in:
Yohan Boniface 2024-05-03 16:06:51 +02:00
parent aa78b13f8e
commit f78e95b088
2 changed files with 0 additions and 12 deletions

View file

@ -153,7 +153,6 @@ export default class Browser {
DomEvent.disableClickPropagation(container)
DomUtil.createTitle(container, translate('Browse data'), 'icon-layers')
this.tabsMenu(container, 'browse')
const formContainer = DomUtil.createFieldset(container, L._('Filters'), {
on: this.mode === 'filters',
})
@ -196,14 +195,4 @@ export default class Browser {
DomEvent.on(button, 'click', map.openBrowser, map)
return button
}
tabsMenu(container, active) {
const tabs = L.DomUtil.create('div', 'flat-tabs', container)
const browse = L.DomUtil.add('button', 'flat tab-browse', tabs, L._('Data'))
DomEvent.on(browse, 'click', this.open, this)
const info = L.DomUtil.add('button', 'flat tab-info', tabs, L._('About'))
DomEvent.on(info, 'click', this.map.displayCaption, this.map)
let el = tabs.querySelector(`.tab-${active}`)
L.DomUtil.addClass(el, 'on')
}
}

View file

@ -665,7 +665,6 @@ const ControlsMixin = {
const container = L.DomUtil.create('div', 'umap-caption')
L.DomUtil.createTitle(container, this.options.name, 'icon-caption')
this.permissions.addOwnerLink('h5', container)
this.browser.tabsMenu(container, 'info')
if (this.options.description) {
const description = L.DomUtil.element({
tagName: 'div',