mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
chore: reviewing labels with Aurélie
This commit is contained in:
parent
59dbde4f32
commit
191fb6d853
4 changed files with 8 additions and 8 deletions
|
@ -150,7 +150,7 @@ export default class Browser {
|
|||
// https://github.com/Leaflet/Leaflet/pull/9052
|
||||
DomEvent.disableClickPropagation(container)
|
||||
|
||||
DomUtil.createTitle(container, translate('Browser'), 'icon-layers')
|
||||
DomUtil.createTitle(container, translate('Data browser'), 'icon-layers')
|
||||
const formContainer = DomUtil.createFieldset(container, L._('Filters'), {
|
||||
on: this.mode === 'filters',
|
||||
className: 'filters',
|
||||
|
|
|
@ -992,7 +992,7 @@ U.AttributionControl = L.Control.Attribution.extend({
|
|||
})
|
||||
}
|
||||
if (captionMenus) {
|
||||
const link = L.DomUtil.add('a', '', container, ` — ${L._('About')}`)
|
||||
const link = L.DomUtil.add('a', '', container, ` — ${L._('Open caption')}`)
|
||||
L.DomEvent.on(link, 'click', L.DomEvent.stop)
|
||||
.on(link, 'click', this._map.openCaption, this._map)
|
||||
.on(link, 'dblclick', L.DomEvent.stop)
|
||||
|
|
|
@ -1611,7 +1611,7 @@ U.Map = L.Map.extend({
|
|||
L.DomUtil.createButton(
|
||||
'umap-about-link flat',
|
||||
container,
|
||||
L._('About'),
|
||||
L._('Open caption'),
|
||||
this.openCaption,
|
||||
this
|
||||
)
|
||||
|
@ -1762,23 +1762,23 @@ U.Map = L.Map.extend({
|
|||
items.push(
|
||||
'-',
|
||||
{
|
||||
text: L._('Browser: layers'),
|
||||
text: L._('Open browser'),
|
||||
callback: () => this.openBrowser('layers'),
|
||||
},
|
||||
{
|
||||
text: L._('Browser: data'),
|
||||
text: L._('Browse data'),
|
||||
callback: () => this.openBrowser('data'),
|
||||
}
|
||||
)
|
||||
if (this.options.facetKey) {
|
||||
items.push({
|
||||
text: L._('Browser: filters'),
|
||||
text: L._('Filter data'),
|
||||
callback: () => this.openBrowser('filters'),
|
||||
})
|
||||
}
|
||||
items.push(
|
||||
{
|
||||
text: L._('About'),
|
||||
text: L._('Open caption'),
|
||||
callback: this.openCaption,
|
||||
},
|
||||
{
|
||||
|
|
|
@ -191,7 +191,7 @@ def test_deleting_datalayer_should_remove_from_browser_and_layers_list(
|
|||
page.goto(f"{live_server.url}{openmap.get_absolute_url()}?edit")
|
||||
panel = page.locator(".panel.left")
|
||||
edit_panel = page.locator(".panel.right")
|
||||
page.get_by_title("See layers").click()
|
||||
page.get_by_title("Open browser").click()
|
||||
page.get_by_role("link", name="Manage layers").click()
|
||||
expect(panel.get_by_text("test datalayer")).to_be_visible()
|
||||
expect(edit_panel.get_by_text("test datalayer")).to_be_visible()
|
||||
|
|
Loading…
Reference in a new issue