Skip to content
Snippets Groups Projects
Commit 0871d6d0 authored by Mathis Neumann's avatar Mathis Neumann
Browse files

refactor entity-details

parent c52c3e31
No related branches found
No related tags found
No related merge requests found
......@@ -7,12 +7,11 @@ export default Ember.Component.extend({
this.debug('entity', this.get('entity'));
const properties = [];
const entity = this.get('entity');
this.get('entity').eachAttribute(
(property) => {
if(!(property.indexOf('Id') >= 0)){
properties.push({key: property, value: entity.get(property)});
}
});
entity.eachAttribute(property => {
if(property.indexOf('Id') < 0) {
properties.push({key: property, value: entity.get(property)});
}
});
this.debug('properties', properties);
return properties;
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment