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 1564733615 Add static chart
Tried to fix layout problems but could not complete
2015-10-16 00:36:02 +02:00

32 lines
909 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.[]'),
S2Voltage203937: function() {
var entity = this.model.findBy('id', 'S2_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'Voltage203937');
}
}.property('model.[]'),
S2Flow1551412_204871: function() {
var entity = this.model.findBy('id', 'S2_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'Flow1551412_204871');
}
}.property('model.[]')
});