mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 19:59:35 +02:00
Add generic QA error
I've converted the improveOSM errors to use this new generic QA error structure which should allow for more general code to be used in behaviour and UI. Sidebar preview is currently broken, but will be fixed shortly.
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
select as d3_select
|
||||
} from 'd3-selection';
|
||||
|
||||
import { osmEntity, osmNote, krError, iOsmError } from '../osm';
|
||||
import { osmEntity, osmNote, krError, qaError } from '../osm';
|
||||
import { utilKeybinding, utilRebind } from '../util';
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ export function behaviorHover(context) {
|
||||
selector = '.data' + datum.__featurehash__;
|
||||
|
||||
} else if (
|
||||
datum instanceof iOsmError ||
|
||||
datum instanceof qaError ||
|
||||
datum instanceof krError
|
||||
) {
|
||||
entity = datum;
|
||||
@@ -187,4 +187,4 @@ export function behaviorHover(context) {
|
||||
|
||||
|
||||
return utilRebind(behavior, dispatch, 'on');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user