From 33f4f8ee5c458016a4c9c4acf44b967549f167dc Mon Sep 17 00:00:00 2001 From: NaVis0mple <109860906+NaVis0mple@users.noreply.github.com> Date: Thu, 21 Dec 2023 21:49:47 +0800 Subject: [PATCH] fix button title --- modules/ui/fields/input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/fields/input.js b/modules/ui/fields/input.js index 0b0c4af1e..75989e0dd 100644 --- a/modules/ui/fields/input.js +++ b/modules/ui/fields/input.js @@ -183,7 +183,7 @@ export function uiFieldText(field, context) { .append('button') .attr('class', 'form-field-button mapillary-set-current') .call(svgIcon('#fas-rotate')) - .call(uiTooltip().title(() => t.append('inspector.set_mapillary'))) + .attr('title', t('inspector.set_mapillary')) .on('click', function(d3_event) { d3_event.preventDefault(); const image = service.getActiveImage(); @@ -221,7 +221,7 @@ export function uiFieldText(field, context) { .append('button') .attr('class', 'form-field-button mapillary-show-view') .call(svgIcon('#fas-eye')) - .call(uiTooltip().title(() => t.append('inspector.show_mapillary_from_field'))) + .attr('title', t('inspector.show_mapillary_from_field')) .on('click', function(d3_event) { d3_event.preventDefault(); if ( !utilGetSetValue(input).trim()) return;