1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-23 00:00:02 +01:00
VILLASweb/app/controllers/simulation-model/edit.js
Markus Grigull 5b09486d3c Move websocket live stream into mixin
Add simulator to websocket message
Add history to simulator-data
2016-07-26 14:40:23 +02:00

21 lines
590 B
JavaScript

import Ember from 'ember';
export default Ember.Controller.extend({
sequence: function() {
return this.get('model.sequence');
}.property('model.sequence'),
values: function() {
return this.get('model.values');
}.property('model.values.@each'),
_updateModel: function() {
if (this.get('model') === null) {
Ember.run.later(this, function() {
var simulationData = this.store.peekRecord('simulation-data', 1);
this.set('model', simulationData);
this.notifyPropertyChange('model');
}, 500);
}
}.observes('model').on('init')
});