migration of open-etc-friends-pool for use with Etica/EGAZ
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
635 B

import Ember from 'ember';
import config from '../config/environment';
export default Ember.Route.extend({
intl: Ember.inject.service(),
beforeModel() {
this.get('intl').setLocale('en-us');
},
toggleMenu: function() {
Ember.$('.navbar-collapse.in').attr("aria-expanded", false).removeClass("in");
},
model: function() {
var url = config.APP.ApiUrl + 'api/stats';
return Ember.$.getJSON(url).then(function(data) {
return Ember.Object.create(data);
});
},
setupController: function(controller, model) {
this._super(controller, model);
Ember.run.later(this, this.refresh, 5000);
}
});