mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
add warning icon also to "regular" max length indicator warning
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user