Action list refresh dunlop style

This commit is contained in:
2018-05-09 15:42:28 -03:00
parent 29983594d5
commit 5ffb667d6b
5 changed files with 42 additions and 60 deletions
+1 -3
View File
@@ -21,9 +21,7 @@ export default Ember.Controller.extend
"#{base_url}/export_technical.csv?#{filter_addition}"
apply_filters: ->
@incrementProperty 'filters.filter_calls'
@set 'model.project_instance_actions.page', 1
@set 'model.project_instance_actions.lastPage', null
@get('model.project_instance_actions').setOtherParam('q', @get('filter_query'))
@get('model.project_instance_actions')?.reload()
false
actions:
refresh_list: -> @apply_filters()
+4 -3
View File
@@ -34,10 +34,11 @@ export default Ember.Controller.extend({
return base_url + "/export_technical.csv?" + filter_addition;
}),
apply_filters: function() {
var ref;
this.incrementProperty('filters.filter_calls');
this.set('model.project_instance_actions.page', 1);
this.set('model.project_instance_actions.lastPage', null);
this.get('model.project_instance_actions').setOtherParam('q', this.get('filter_query'));
if ((ref = this.get('model.project_instance_actions')) != null) {
ref.reload();
}
return false;
},
actions: {