More specialized exports

This commit is contained in:
2018-01-15 08:48:15 -03:00
parent 47cff0c79f
commit 594666cda4
7 changed files with 33 additions and 10 deletions
+2 -2
View File
@@ -9,12 +9,12 @@ export default Ember.Controller.extend
scope_organization: null
filter_query: Ember.computed 'filters.filter_calls', ->
@get('filters')?.toProperties() || {}
export_human_url: Ember.computed 'filters.filter_calls', ->
export_human_url: Ember.computed 'filter_query', ->
model_name = 'panda/project-instance-action'
base_url = @store.adapterFor(model_name).buildURL(model_name)
filter_addition = Ember.$.param q: @get('filter_query')
"#{base_url}/export_human.csv?#{filter_addition}"
export_technical_url: Ember.computed 'filters.filter_calls', ->
export_technical_url: Ember.computed 'filter_query', ->
model_name = 'panda/project-instance-action'
base_url = @store.adapterFor(model_name).buildURL(model_name)
filter_addition = Ember.$.param q: @get('filter_query')
+2 -2
View File
@@ -13,7 +13,7 @@ export default Ember.Controller.extend({
var ref;
return ((ref = this.get('filters')) != null ? ref.toProperties() : void 0) || {};
}),
export_human_url: Ember.computed('filters.filter_calls', function() {
export_human_url: Ember.computed('filter_query', function() {
var base_url, filter_addition, model_name;
model_name = 'panda/project-instance-action';
base_url = this.store.adapterFor(model_name).buildURL(model_name);
@@ -22,7 +22,7 @@ export default Ember.Controller.extend({
});
return base_url + "/export_human.csv?" + filter_addition;
}),
export_technical_url: Ember.computed('filters.filter_calls', function() {
export_technical_url: Ember.computed('filter_query', function() {
var base_url, filter_addition, model_name;
model_name = 'panda/project-instance-action';
base_url = this.store.adapterFor(model_name).buildURL(model_name);