Updating node converters

This commit is contained in:
piotrpekala7 2020-03-02 16:12:36 +01:00
parent c2c74f34ea
commit f6f7ceb627
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export class MapNodeToNodeConverter implements Converter<MapNode, Node> {
node.compute_id = mapNode.computeId;
node.console = mapNode.console;
node.console_host = mapNode.consoleHost;
node.console_type = mapNode.consoleType;
node.first_port_name = mapNode.firstPortName;
node.height = mapNode.height;
node.label = mapNode.label ? this.mapLabelToLabel.convert(mapNode.label) : undefined;

View File

@ -26,6 +26,7 @@ export class NodeToMapNodeConverter implements Converter<Node, MapNode> {
mapNode.computeId = node.compute_id;
mapNode.console = node.console;
mapNode.consoleHost = node.console_host;
mapNode.consoleType = node.console_type;
mapNode.firstPortName = node.first_port_name;
mapNode.height = node.height;
mapNode.label = this.labelToMapLabel ? this.labelToMapLabel.convert(node.label, { node_id: node.node_id }) : undefined;