More specialized exports
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -7,7 +7,8 @@ export default_filter = Ember.Object.create
|
||||
project_id: ''
|
||||
project_instance_project_scenario_id: ''
|
||||
workflow_action_definition_organization_id: ''
|
||||
workflow_action_definition_offset_type_not_eq: 'attached'
|
||||
#workflow_action_definition_offset_type_not_eq: 'attached'
|
||||
target_date_not_null: 1 # only target date actions
|
||||
state_in: []
|
||||
target_date_gteq: null
|
||||
target_date_lteq: null
|
||||
|
||||
@@ -10,7 +10,7 @@ export var default_filter = Ember.Object.create({
|
||||
project_id: '',
|
||||
project_instance_project_scenario_id: '',
|
||||
workflow_action_definition_organization_id: '',
|
||||
workflow_action_definition_offset_type_not_eq: 'attached',
|
||||
target_date_not_null: 1,
|
||||
state_in: [],
|
||||
target_date_gteq: null,
|
||||
target_date_lteq: null,
|
||||
|
||||
Reference in New Issue
Block a user