mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
18 lines
485 B
JavaScript
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.[]')
|
|
});
|