Skip to content

Commit

Permalink
Merge pull request #48 from openearth/local-tide
Browse files Browse the repository at this point in the history
tide info for old models
  • Loading branch information
SiggyF authored Dec 13, 2017
2 parents f46124f + 5f5234d commit 2309b52
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/scripts/realtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,20 @@
_.each(realtime, (el) => {
el.loaded = false;
});

this.realtime = json.realtime;
if (_.has(this.model, 'realtime')) {
this.realtime.push(this.model.realtime);
if (!_.has(this.model.realtime, 'title')) {
this.model.realtime.title = 'Model timeseries';
}
if (!_.has(this.model.realtime, 'abstract')) {
this.model.realtime.abstract = 'Timeseries extracted from model';
}
if (!_.has(this.model.realtime, 'types')) {
this.model.realtime.types = ['waterlevel'];
}
}

});
},
Expand Down

0 comments on commit 2309b52

Please sign in to comment.