Ensure that undo/redo buttons look disabled when the map is not editable (close #6105)

This commit is contained in:
Quincy Morgan
2019-04-04 17:34:20 -07:00
parent 65e04acb2f
commit 35c7cbd92b
+3 -1
View File
@@ -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')) {