Skip to content
Snippets Groups Projects
entity-details.js 569 B
Newer Older
import Ember from 'ember';

export default Ember.Component.extend({
    filteredProperties: Ember.computed('entity', 'entity._updated', function(){
        this.debug('entity', this.get('entity'));
        const properties = [];
        const entity = this.get('entity');
Mathis Neumann's avatar
Mathis Neumann committed
        entity.eachAttribute(property => {
            if(property.indexOf('Id') < 0) {
                properties.push({key: property, value: entity.get(property)});
            }
        });
        this.debug('properties', properties);
        return properties;