Disallow favoriting vertices and relations

This commit is contained in:
Quincy Morgan
2019-02-27 11:34:47 -05:00
parent 0a0e4890ca
commit 1c1c3b2823
+3 -1
View File
@@ -15,8 +15,10 @@ export function uiPresetFavorite(preset, geom, context) {
presetFavorite.button = function(selection) {
var canFavorite = geom !== 'vertex' && geom !== 'relation';
_button = selection.selectAll('.preset-favorite-button')
.data([0]);
.data(canFavorite ? [0] : []);
_button.exit().remove();