mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Ensure that undo/redo buttons look disabled when the map is not editable (close #6105)
This commit is contained in:
@@ -90,7 +90,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