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) DomEvent.disableClickPropagation(container)
DomUtil.createTitle(container, translate('Browse data'), 'icon-layers') DomUtil.createTitle(container, translate('Browse data'), 'icon-layers')
this.tabsMenu(container, 'browse')
const formContainer = DomUtil.createFieldset(container, L._('Filters'), { const formContainer = DomUtil.createFieldset(container, L._('Filters'), {
on: this.mode === 'filters', on: this.mode === 'filters',
}) })
@ -196,14 +195,4 @@ export default class Browser {
DomEvent.on(button, 'click', map.openBrowser, map) DomEvent.on(button, 'click', map.openBrowser, map)
return button 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') const container = L.DomUtil.create('div', 'umap-caption')
L.DomUtil.createTitle(container, this.options.name, 'icon-caption') L.DomUtil.createTitle(container, this.options.name, 'icon-caption')
this.permissions.addOwnerLink('h5', container) this.permissions.addOwnerLink('h5', container)
this.browser.tabsMenu(container, 'info')
if (this.options.description) { if (this.options.description) {
const description = L.DomUtil.element({ const description = L.DomUtil.element({
tagName: 'div', tagName: 'div',