mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
Merge branch 'master' into validation_and_change_perf
This commit is contained in:
@@ -173,7 +173,7 @@ export function uiToolAddFavorite(context) {
|
||||
buttonsEnter
|
||||
.each(function(d) {
|
||||
d3_select(this)
|
||||
.call(uiPresetIcon()
|
||||
.call(uiPresetIcon(context)
|
||||
.geometry((d.geometry === 'point' && !d.preset.matchGeometry(d.geometry)) ? 'vertex' : d.geometry)
|
||||
.preset(d.preset)
|
||||
.sizeClass('small')
|
||||
|
||||
@@ -210,7 +210,7 @@ export function uiToolAddRecent(context) {
|
||||
buttonsEnter
|
||||
.each(function(d) {
|
||||
d3_select(this)
|
||||
.call(uiPresetIcon()
|
||||
.call(uiPresetIcon(context)
|
||||
.geometry((d.geometry === 'point' && !d.preset.matchGeometry(d.geometry)) ? 'vertex' : d.geometry)
|
||||
.preset(d.preset)
|
||||
.sizeClass('small')
|
||||
|
||||
@@ -418,7 +418,7 @@ export function uiToolSearchAdd(context) {
|
||||
|
||||
row.each(function(d) {
|
||||
d3_select(this).call(
|
||||
uiPresetIcon()
|
||||
uiPresetIcon(context)
|
||||
.geometry(d.geometry)
|
||||
.preset(d.preset || d.presets[0])
|
||||
.sizeClass('small')
|
||||
|
||||
@@ -92,7 +92,9 @@ export function uiToolUndoRedo(context) {
|
||||
function update() {
|
||||
buttons
|
||||
.property('disabled', !editable())
|
||||
.classed('disabled', function(d) { return !d.annotation(); })
|
||||
.classed('disabled', function(d) {
|
||||
return !editable() || !d.annotation();
|
||||
})
|
||||
.each(function() {
|
||||
var selection = d3_select(this);
|
||||
if (selection.property('tooltipVisible')) {
|
||||
|
||||
Reference in New Issue
Block a user