add warning icon also to "regular" max length indicator warning

This commit is contained in:
Martin Raifer
2022-11-28 19:18:35 +01:00
parent e5810acb65
commit 827608ad23
2 changed files with 4 additions and 2 deletions

View File

@@ -615,7 +615,7 @@ en:
comment_needed_message: Please add a changeset comment first.
about_changeset_comments: About changeset comments
about_changeset_comments_link: //wiki.openstreetmap.org/wiki/Good_changeset_comments
changeset_comment_length_warning: "Changeset comments can have a maximum of {maxChars} characters"
changeset_comment_length_warning: "Changeset comments can have a maximum of {maxChars} characters."
google_warning: "You mentioned Google in this comment: remember that copying from Google Maps is strictly forbidden."
google_warning_link: https://www.openstreetmap.org/copyright
contributors:

View File

@@ -1,6 +1,7 @@
import { select as d3_select } from 'd3-selection';
import { t } from '../core/localizer';
import { svgIcon } from '../svg';
import {
utilUnicodeCharsCount,
utilCleanOsmString
@@ -15,7 +16,8 @@ export function uiLengthIndicator(maxChars) {
.hasArrow(true)
.content(() => selection => {
selection.text('');
t.append('inspector.max_length_reached', { maxChars })(selection);
selection.call(svgIcon('#iD-icon-alert', 'inline'));
selection.call(t.append('inspector.max_length_reached', { maxChars }));
});
var _silent = false;