--- a/cms/app-client/app/routes/tabs/carto.js Sun Oct 02 21:43:05 2016 +0200
+++ b/cms/app-client/app/routes/tabs/carto.js Tue Oct 04 23:04:06 2016 +0200
@@ -2,7 +2,15 @@
export default Ember.Route.extend({
- modelQueryParam: '6295630',
+ constants: Ember.inject.service(),
+
+ modelQueryParam: '',
+
+ init: function() {
+ this._super(...arguments);
+
+ this.set('modelQueryParam', this.get('constants').GEONAMES['world']);
+ },
model: function() {
return this.store.query('geostat', {
@@ -12,7 +20,7 @@
},
deactivate: function () {
- this.set('modelQueryParam', '6295630');
+ this.set('modelQueryParam', this.get('constants').GEONAMES['world']);
},
setupController: function(controller) {