mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-02 05:01:38 +02:00
Add external modules to validations
This commit is contained in:
+3
-1
@@ -5,6 +5,7 @@ import * as modes from './modes/index';
|
||||
import * as util from './util/index';
|
||||
import * as operations from './operations/index';
|
||||
import * as presets from './presets/index';
|
||||
import * as validations from './validations/index';
|
||||
|
||||
export { Connection } from './core/connection';
|
||||
export { Difference } from './core/difference';
|
||||
@@ -24,5 +25,6 @@ export {
|
||||
modes,
|
||||
operations,
|
||||
presets,
|
||||
util
|
||||
util,
|
||||
validations
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { tagText } from '../util/index';
|
||||
export function DeprecatedTag() {
|
||||
|
||||
var validation = function(changes) {
|
||||
@@ -7,7 +8,7 @@ export function DeprecatedTag() {
|
||||
deprecatedTags = change.deprecatedTags();
|
||||
|
||||
if (!_.isEmpty(deprecatedTags)) {
|
||||
var tags = iD.util.tagText({ tags: deprecatedTags });
|
||||
var tags = tagText({ tags: deprecatedTags });
|
||||
warnings.push({
|
||||
id: 'deprecated_tags',
|
||||
message: t('validations.deprecated_tags', { tags: tags }),
|
||||
|
||||
Reference in New Issue
Block a user