wip: remove tabs from browser
This commit is contained in:
parent
aa78b13f8e
commit
f78e95b088
2 changed files with 0 additions and 12 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue