operation remove

This commit is contained in:
Milos Brzakovic (E-Search)
2021-11-26 16:20:50 +01:00
parent 03fed63668
commit fcd8d920ba
2 changed files with 3 additions and 0 deletions

View File

@@ -383,6 +383,7 @@ export function uiFieldLocalized(field, context) {
label
.append('button')
.attr('class', 'remove-icon-multilingual')
.attr('title', t('icons.remove'))
.on('click', function(d3_event, d) {
if (field.locked()) return;
d3_event.preventDefault();

View File

@@ -354,6 +354,7 @@ export function uiSectionRawMembershipEditor(context) {
labelEnter
.append('button')
.attr('class', 'remove member-delete')
.attr('title', t('icons.remove'))
.call(svgIcon('#iD-operation-delete'))
.on('click', deleteMembership);
@@ -421,6 +422,7 @@ export function uiSectionRawMembershipEditor(context) {
newLabelEnter
.append('button')
.attr('class', 'remove member-delete')
.attr('title', t('icons.remove'))
.call(svgIcon('#iD-operation-delete'))
.on('click', function() {
list.selectAll('.member-row-new')