mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Redraw entity editor fields on addition, deletion too
This is important to make the turn restriction editor work
This commit is contained in:
@@ -241,7 +241,11 @@ export function uiEntityEditor(context) {
|
||||
|
||||
function historyChanged(difference) {
|
||||
if (_state === 'hide') return;
|
||||
if (!difference || !difference.didChange.properties) return;
|
||||
var significant = !difference ||
|
||||
difference.didChange.properties ||
|
||||
difference.didChange.addition ||
|
||||
difference.didChange.deletion;
|
||||
if (!significant) return;
|
||||
|
||||
var entity = context.hasEntity(_entityID);
|
||||
var graph = context.graph();
|
||||
|
||||
@@ -612,11 +612,11 @@ export function uiFieldRestrictions(field, context) {
|
||||
}
|
||||
|
||||
|
||||
restrictions.entity = function(_) {
|
||||
restrictions.entity = function(val) {
|
||||
_intersection = null;
|
||||
_fromWayID = null;
|
||||
_oldTurns = null;
|
||||
_vertexID = _.id;
|
||||
_vertexID = val.id;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user