Loading js-apps/frontend/src/js/containers/sandbox/map-info.js +4 −7 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ const POA_OPACITY = 1.0; const POA_RANGE_OPACITY = 0.05; const COMPUTE_ICON = 'ion-android-cloud'; const COMPUTE_COLOR_DEFAULT = '#696969'; const COMPUTE_COLOR_DEFAULT = '#0a50f2'; const COMPUTE_OPACITY = 1.0; const DEFAULT_MAP_STYLE = 'Positron'; Loading Loading @@ -310,13 +310,10 @@ class MapInfo extends Component { } getComputeColor(compute) { var color = undefined; if (this.isConnected(compute)) { color = this.getZoneColor(this.getComputeZone(compute)); } else { color = DISCONNECTED_COLOR; if (!this.isConnected(compute)) { return DISCONNECTED_COLOR; } return color ? color : COMPUTE_COLOR_DEFAULT; return COMPUTE_COLOR_DEFAULT; } // Get connected status Loading Loading
js-apps/frontend/src/js/containers/sandbox/map-info.js +4 −7 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ const POA_OPACITY = 1.0; const POA_RANGE_OPACITY = 0.05; const COMPUTE_ICON = 'ion-android-cloud'; const COMPUTE_COLOR_DEFAULT = '#696969'; const COMPUTE_COLOR_DEFAULT = '#0a50f2'; const COMPUTE_OPACITY = 1.0; const DEFAULT_MAP_STYLE = 'Positron'; Loading Loading @@ -310,13 +310,10 @@ class MapInfo extends Component { } getComputeColor(compute) { var color = undefined; if (this.isConnected(compute)) { color = this.getZoneColor(this.getComputeZone(compute)); } else { color = DISCONNECTED_COLOR; if (!this.isConnected(compute)) { return DISCONNECTED_COLOR; } return color ? color : COMPUTE_COLOR_DEFAULT; return COMPUTE_COLOR_DEFAULT; } // Get connected status Loading