1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00
VILLASweb/app/controllers/lab-mashup.js
Markus Grigull 29b1da6ca1 Add entity-chart component
The component combines the property-table and line-chart to
manage and display the properties of one entity. Thus it is
reusable for multiple entities at the same time.
2015-10-14 11:05:11 +02:00

27 lines
531 B
JavaScript

import Ember from 'ember';
export default Ember.Controller.extend({
S1Entity: function() {
var entity = null;
this.model.forEach(function (_entity) {
if (_entity.id === 'S1_ElectricalGrid') {
entity = _entity;
}
});
return entity;
}.property('model.[]'),
S2Entity: function() {
var entity = null;
this.model.forEach(function (_entity) {
if (_entity.id === 'S2_ElectricalGrid') {
entity = _entity;
}
});
return entity;
}.property('model.[]')
});