mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
Merge pull request #4904 from vershwal/remove-undo-icon
Hint text for Remove and Undo button.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
en:
|
||||
icons:
|
||||
information: info
|
||||
remove: remove
|
||||
undo: undo
|
||||
modes:
|
||||
add_area:
|
||||
title: Area
|
||||
|
||||
Vendored
+3
-1
@@ -1,7 +1,9 @@
|
||||
{
|
||||
"en": {
|
||||
"icons": {
|
||||
"information": "info"
|
||||
"information": "info",
|
||||
"remove": "remove",
|
||||
"undo": "undo"
|
||||
},
|
||||
"modes": {
|
||||
"add_area": {
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
select as d3_select
|
||||
} from 'd3-selection';
|
||||
|
||||
import { t } from '../util/locale';
|
||||
import { textDirection } from '../util/locale';
|
||||
import { svgIcon } from '../svg';
|
||||
import { uiFieldHelp } from './field_help';
|
||||
@@ -114,6 +115,7 @@ export function uiField(context, presetField, entity, options) {
|
||||
wrap
|
||||
.append('button')
|
||||
.attr('class', 'remove-icon')
|
||||
.attr('title', t('icons.remove'))
|
||||
.attr('tabindex', -1)
|
||||
.call(svgIcon('#operation-delete'));
|
||||
}
|
||||
@@ -122,6 +124,7 @@ export function uiField(context, presetField, entity, options) {
|
||||
wrap
|
||||
.append('button')
|
||||
.attr('class', 'modified-icon')
|
||||
.attr('title', t('icons.undo'))
|
||||
.attr('tabindex', -1)
|
||||
.call(
|
||||
(textDirection === 'rtl') ? svgIcon('#icon-redo') : svgIcon('#icon-undo')
|
||||
|
||||
Reference in New Issue
Block a user