mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Show the inspector instead of the preset list when selecting an untagged vertex with a parent relation
This commit is contained in:
@@ -71,6 +71,9 @@ export function uiInspector(context) {
|
||||
// all existing features except vertices should default to inspector
|
||||
if (entity.geometry(context.graph()) !== 'vertex') return false;
|
||||
|
||||
// show vertex relations if any
|
||||
if (context.graph().parentRelations(entity).length) return false;
|
||||
|
||||
// show vertex issues if there are any
|
||||
if (context.validator().getEntityIssues(entityID).length) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user