diff --git a/app/components/entity-chart.js b/app/components/entity-chart.js
index 684a8f7..32a1337 100644
--- a/app/components/entity-chart.js
+++ b/app/components/entity-chart.js
@@ -9,6 +9,11 @@ export default Ember.Component.extend({
return properties.objectAt(0);
}.property('entity'),
+ entityAvailable: function() {
+ var properties = this.get('entity.properties');
+ return (properties.get('length') > 0);
+ }.property('entity'),
+
actions: {
showPropertyValues(_prop) {
this.set('visibleProperty', _prop);
diff --git a/app/templates/components/entity-chart.hbs b/app/templates/components/entity-chart.hbs
index 26ea39d..e9212ec 100644
--- a/app/templates/components/entity-chart.hbs
+++ b/app/templates/components/entity-chart.hbs
@@ -1,13 +1,14 @@
-{{#if entity}}
-
- {{#if entityName}}
-
-
- {{entityName}}
- |
-
- {{/if}}
+
+
+ {{#if entityName}}
+
+ {{entityName}}
+ |
+
+ {{/if}}
+
+ {{#if entityAvailable}}
{{property-table model=entity showProperty="showPropertyValues"}}
|
@@ -22,8 +23,9 @@
{{visibleProperty.type}}
{{/if}}
-
-
-{{else}}
- No entitiy found
-{{/if}}
+ {{else}}
+ Entity has no attributes
+ {{/if}}
+
+
+