From: lombardofr Date: Mon, 15 Apr 2019 09:07:22 +0000 (+0200) Subject: composer: intCp not selectable X-Git-Tag: v6.0.0~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature7106;p=osm%2FLW-UI.git composer: intCp not selectable Change-Id: I1c1651da7857eab8ceffb7e24238314bde1c776a Signed-off-by: lombardofr --- diff --git a/static/src/descriptorhandler/composer.js b/static/src/descriptorhandler/composer.js index ecafe77..8f5e870 100644 --- a/static/src/descriptorhandler/composer.js +++ b/static/src/descriptorhandler/composer.js @@ -266,7 +266,7 @@ function updatePalette(view) { var nodes_properties = osm_gui_properties['nodes']; for (var n in nodes) { var node = nodes[n]; - if (nodes_properties[node]) { + if (nodes_properties[node] && (nodes_properties[node].draggable != false)) { palette_template += '
' + '
' + diff --git a/static/src/osm_gui_properties.js b/static/src/osm_gui_properties.js index 1ebf214..11947da 100644 --- a/static/src/osm_gui_properties.js +++ b/static/src/osm_gui_properties.js @@ -45,7 +45,8 @@ var osm_gui_properties = { "shape": "square", "color": "#e3bfad", "size": 15, - "name": "intCP" + "name": "intCP", + "draggable": false }, "ns_vl": { "shape": "triangle",