Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whitespaces fixes in my travels
  • Loading branch information
jnovack committed Apr 7, 2018
commit 124f690eecdede3ced7a899e31997271c6a8f4e2
2 changes: 0 additions & 2 deletions src/data-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ let stringToColor = (str) => {
return color;
};



let physicalStructProvider = ([initialNodes, initialContainers]) => {
let containers = _.map(initialContainers, _.cloneDeep);
let nodeClusters = [{ uuid: "clusterid", name: "" }];
Expand Down
14 changes: 7 additions & 7 deletions src/vis-physical/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ function render ({root}) {
.select('.node-cluster-meta')
.html(({name,state = '', node_type = '', region = ''}) => {

// This is a HORRIBLE hack
// but I don't wanna fetch nodeTypes from the API as from now
var displayType = node_type.split('/')[4] || ''; // horrible
// This is a HORRIBLE hack
// but I don't wanna fetch nodeTypes from the API as from now
var displayType = node_type.split('/')[4] || ''; // horrible
var displayRegion = region.split('/')[5] || ''; // horrible

switch(displayType){
Expand All @@ -125,17 +125,17 @@ function render ({root}) {
node
.select('.node-meta')
.attr('name',(d) => _.kebabCase(d.name))
.attr('data-state',(d) => _.kebabCase(d.state))
.html((d) => d.name);
.attr('data-state',(d) => _.kebabCase(d.state))
.html((d) => d.name);

node
.select('.node-content')
.attr('data-availability',(d) => _.kebabCase(d.Spec.Availability))

container
.classed('foreign', (d) => !d.state)
.attr('tag',(d) => _.kebabCase(d.tag)).html((d) => d.tag)
.attr('data-state',(d) => _.kebabCase(d.state))
.attr('tag',(d) => _.kebabCase(d.tag)).html((d) => d.tag)
.attr('data-state',(d) => _.kebabCase(d.state))


container.on('mouseenter',null);
Expand Down