mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 11:16:36 +02:00
Add "deselect" tooltip to X buttons in selected features list
This commit is contained in:
@@ -10,6 +10,7 @@ en:
|
||||
favorite: favorite
|
||||
list: list
|
||||
text: text
|
||||
deselect: deselect
|
||||
toolbar:
|
||||
inspect: Inspect
|
||||
undo_redo: Undo / Redo
|
||||
|
||||
Vendored
+2
-1
@@ -10,7 +10,8 @@
|
||||
"view_on": "view on {domain}",
|
||||
"favorite": "favorite",
|
||||
"list": "list",
|
||||
"text": "text"
|
||||
"text": "text",
|
||||
"deselect": "deselect"
|
||||
},
|
||||
"toolbar": {
|
||||
"inspect": "Inspect",
|
||||
|
||||
@@ -3,6 +3,7 @@ import { event as d3_event, select as d3_select } from 'd3-selection';
|
||||
import { modeSelect } from '../modes/select';
|
||||
import { osmEntity } from '../osm';
|
||||
import { svgIcon } from '../svg/icon';
|
||||
import { t } from '../util/locale';
|
||||
import { utilDisplayName, utilHighlightEntities } from '../util';
|
||||
|
||||
|
||||
@@ -79,6 +80,7 @@ export function uiSelectionList(context) {
|
||||
enter
|
||||
.append('button')
|
||||
.attr('class', 'close')
|
||||
.attr('title', t('icons.deselect'))
|
||||
.on('click', deselectEntity)
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user