Remove unused string

Don't show preset browser when adding a favorite point
Don't automatically open the sidebar when selecting a non-new feature
This commit is contained in:
Quincy Morgan
2019-02-27 12:20:23 -05:00
parent 4fabb4aac8
commit 2da011c3ca
4 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,6 @@ en:
vertex: Added a node to a way.
relation: Added a relation.
note: Added a note.
title: Add
start:
annotation:
line: Started a line.

View File

@@ -64,8 +64,7 @@
"vertex": "Added a node to a way.",
"relation": "Added a relation.",
"note": "Added a note."
},
"title": "Add"
}
},
"start": {
"annotation": {

View File

@@ -36,7 +36,7 @@ export function modeAddPoint(context, customMode) {
);
context.enter(
modeSelect(context, [node.id]).newFeature(true)
modeSelect(context, [node.id]).newFeature(!mode.preset)
);
}
@@ -50,7 +50,7 @@ export function modeAddPoint(context, customMode) {
);
context.enter(
modeSelect(context, [node.id]).newFeature(true)
modeSelect(context, [node.id]).newFeature(!mode.preset)
);
}

View File

@@ -215,8 +215,10 @@ export function uiSidebar(context) {
var entity = context.entity(id);
// uncollapse the sidebar
if (selection.classed('collapsed')) {
var extent = entity.extent(context.graph());
sidebar.expand(sidebar.intersects(extent));
if (newFeature) {
var extent = entity.extent(context.graph());
sidebar.expand(sidebar.intersects(extent));
}
}
featureListWrap