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 e9c8459216 Add height and useLabel parameter to line-chart
Add chart of fixed property to consumer page
2015-10-15 17:09:02 +02:00

18 lines
485 B
JavaScript

import Ember from 'ember';
export default Ember.Controller.extend({
S1Entity: function() {
return this.model.findBy('id', 'S1_ElectricalGrid');
}.property('model.[]'),
S2Entity: function() {
return this.model.findBy('id', 'S2_ElectricalGrid');
}.property('model.[]'),
S1Freq575: function() {
var entity = this.model.findBy('id', 'S1_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'Freq_575');
}
}.property('model.[]')
});