From c8ae19215d963288f88e8f463c0ec54a6e9195d1 Mon Sep 17 00:00:00 2001
From: leoborn <born.leo@gmx.de>
Date: Tue, 23 Jul 2019 15:53:00 +0200
Subject: [PATCH] [vissuite] fixed bug that colors were incorrect after mapping
 node types

---
 visualization/client/js/controllers/vis-general.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/visualization/client/js/controllers/vis-general.js b/visualization/client/js/controllers/vis-general.js
index 25da520..913f1c6 100644
--- a/visualization/client/js/controllers/vis-general.js
+++ b/visualization/client/js/controllers/vis-general.js
@@ -504,8 +504,8 @@ angular
                         edges.update(edges.get());
 
                         angular.forEach(nodes.get(), function(nodeVal, nodeKey){
-                            if( nodeVal.label in $scope.node_shape_mapping ){
-                                var color = $scope.node_color_mapping[nodeVal.label];
+                            if( nodeVal.label_original in $scope.node_shape_mapping ){
+                                var color = $scope.node_color_mapping[nodeVal.label_original];
                                 nodeVal.color.background = color.background;
                             }
                             else{
@@ -575,8 +575,8 @@ angular
                         nodeVal.color.background = "#cccccc";
                     }
                     else{
-                        if( nodeVal.label in $scope.node_color_mapping ){
-                            var color = $scope.node_color_mapping[nodeVal.label];
+                        if( nodeVal.label_original in $scope.node_color_mapping ){
+                            var color = $scope.node_color_mapping[nodeVal.label_original];
                             nodeVal.color.background = color.background;
                         }
                         else{
@@ -853,8 +853,8 @@ angular
                 edges.update(edges.get());
 
                 angular.forEach(nodes.get(), function(nodeVal, nodeKey){
-                    if( nodeVal.label == node_type_label ){
-                        var color = $scope.node_color_mapping[nodeVal.label];
+                    if( nodeVal.label_original == node_type_label ){
+                        var color = $scope.node_color_mapping[nodeVal.label_original];
                         nodeVal.color.background = color.background;
                     }
                     else{
-- 
GitLab