mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Disallow favoriting vertices and relations
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user