Commit fa6587a6 authored by Fintan Mc Gee's avatar Fintan Mc Gee

fixed issue with sopt data items not being created on server

parent 96ca3aa3
......@@ -183,6 +183,7 @@ angular.module('blizaarModule.services')
if(multiLayerGraphService.getGraph().getLayerByName("DataItems").nodes.length > 0) {
multiLayerGraphService.getGraph().induceLinksInLayer("DataItems");
dataService.updateLayerOnServer("addNodeLabelToLayer", "DataItems", "DataLine");
dataService.updateLayerOnServer("addNodeLabelToLayer", "DataItems", "Spot");
// dataService.updateLayerOnServer("induceLinksInLayer", "DataItems"); no inter data line links so this is not necessary
var dataItemNodeUids = [];
multiLayerGraphService.getLayerByName("DataItems").nodes.forEach(function(n,index){
......
......@@ -3288,6 +3288,12 @@ var MultiLayerGraph = function (nodes, links, layerName) {
};
g.setNodeProperty =function(uid,propName, propValue) {
if(!g.node) {
g.buildNodeLookUp();
}
if(!uid || !g.node[uid]) {
console.log( "unrecgognised node for set property : layer" + g.name + " uid:" + uid + " propName:"+ propName + " propValue:" + propValue+ "")
}
if(g.isLocalLayerProperty(propName)) {
g.node[uid][propName] = propValue;
} else {
......
......@@ -95,9 +95,9 @@ function createFrontEndGraph(data, graphName) {
}
node["id"]=n.id;
node["label"]=nodeLabel;
if(node["label"].indexOf("tmp") > -1) {
console.log("found stray temp Label")
}
// if(node["label"].indexOf("tmp") > -1) {
// console.log("found stray temp Label")
// }
node["labels"]=nodeLabels;
node["title"]=n.properties.name || n.properties.title;
if(DEBUG_MODE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment