composer: intCp not selectable 10/7410/1 feature7106
authorlombardofr <lombardo@everyup.it>
Mon, 15 Apr 2019 09:07:22 +0000 (11:07 +0200)
committerlombardofr <lombardo@everyup.it>
Mon, 15 Apr 2019 09:07:22 +0000 (11:07 +0200)
Change-Id: I1c1651da7857eab8ceffb7e24238314bde1c776a
Signed-off-by: lombardofr <lombardo@everyup.it>
static/src/descriptorhandler/composer.js
static/src/osm_gui_properties.js

index ecafe77..8f5e870 100644 (file)
@@ -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 += '<div id="drag_' + n + '" class="node ui-draggable"' +
                     'type-name="' + node + '" draggable="true" ondragstart="nodeDragStart(event)">' +
                     '<div class="icon" style="background-color:' + nodes_properties[node].color + '"></div>' +
index 1ebf214..11947da 100644 (file)
@@ -45,7 +45,8 @@ var osm_gui_properties = {
                  "shape": "square",
                 "color": "#e3bfad",
                 "size": 15,
-                "name": "intCP"
+                "name": "intCP",
+                "draggable": false
             },
             "ns_vl": {
                 "shape": "triangle",