Permalink
Browse files

Hide empty sensor data

  • Loading branch information...
1 parent 1cef85a commit 5e731f2ac0b86ee55859c2b79024d92f6455eca5 @oldpatricka oldpatricka committed Nov 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 phantomweb/static/js/phantom_domain.js
@@ -263,7 +263,10 @@ function phantom_domain_load_instances() {
fields[4] = instance.image_id;
fields[5] = instance.instance_type;
fields[6] = instance.keyname;
- fields[7] = instance.metric + ": " + sensor_data_to_string(instance.sensor_data);
+ var parsed_sensor_data = sensor_data_to_string(instance.sensor_data);
+ if (parsed_sensor_data !== "") {
+ fields[7] = instance.metric + ": " + sensor_data_to_string(instance.sensor_data);
+ }
var filter = $("#phantom_domain_filter_list").val();
if (filter != "All") {

0 comments on commit 5e731f2

Please sign in to comment.