mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
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:
@@ -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.
|
||||
|
||||
3
dist/locales/en.json
vendored
3
dist/locales/en.json
vendored
@@ -64,8 +64,7 @@
|
||||
"vertex": "Added a node to a way.",
|
||||
"relation": "Added a relation.",
|
||||
"note": "Added a note."
|
||||
},
|
||||
"title": "Add"
|
||||
}
|
||||
},
|
||||
"start": {
|
||||
"annotation": {
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user