Action list click info instead of hover not allowing copy paste on more persistent popup
This commit is contained in:
@@ -2,7 +2,7 @@ import Ember from 'ember'
|
||||
import PagedRemoteArray from 'ember-cli-dunlop/utils/paged-remote-array'
|
||||
export filters = Ember.Object.create
|
||||
filter_calls: 0
|
||||
workflow_action_definition_id_in: []
|
||||
workflow_action_definition_identifier_in: []
|
||||
project_instance_group_workflow_group_id: ''
|
||||
project_id: ''
|
||||
project_instance_project_scenario_id: ''
|
||||
@@ -18,7 +18,12 @@ export filters = Ember.Object.create
|
||||
s: 'target_date asc'
|
||||
|
||||
export default Ember.Route.extend
|
||||
queryParams: {q: refreshModel: true}
|
||||
queryParams:
|
||||
state: {refreshModel: true}
|
||||
project: {refreshModel: true}
|
||||
action: {refreshModel: true}
|
||||
page: {refreshModel: true}
|
||||
perPage: {refreshModel: true}
|
||||
modelName: 'panda/project-instance-action'
|
||||
setupController: (controller) ->
|
||||
controller.set 'filters', filters
|
||||
@@ -48,6 +53,8 @@ export default Ember.Route.extend
|
||||
# 'pointing_project_instance_action_connections.project_instance_action.workflow_action_definition.~organization'
|
||||
# 'pointing_project_instance_action_connections.project_instance_action.workflow_action_definition.~workflow_action_offsets'
|
||||
#]
|
||||
filters.state_in = [params.state] if params.state
|
||||
filters.workflow_action_definition_identifier_in = [params.action] if params.action
|
||||
Ember.RSVP.hash
|
||||
projects: @store.findAll('panda/project')
|
||||
organizations: @store.findAll('panda/organization')
|
||||
|
||||
@@ -5,7 +5,7 @@ import PagedRemoteArray from 'ember-cli-dunlop/utils/paged-remote-array';
|
||||
|
||||
export var filters = Ember.Object.create({
|
||||
filter_calls: 0,
|
||||
workflow_action_definition_id_in: [],
|
||||
workflow_action_definition_identifier_in: [],
|
||||
project_instance_group_workflow_group_id: '',
|
||||
project_id: '',
|
||||
project_instance_project_scenario_id: '',
|
||||
@@ -21,7 +21,19 @@ export var filters = Ember.Object.create({
|
||||
|
||||
export default Ember.Route.extend({
|
||||
queryParams: {
|
||||
q: {
|
||||
state: {
|
||||
refreshModel: true
|
||||
},
|
||||
project: {
|
||||
refreshModel: true
|
||||
},
|
||||
action: {
|
||||
refreshModel: true
|
||||
},
|
||||
page: {
|
||||
refreshModel: true
|
||||
},
|
||||
perPage: {
|
||||
refreshModel: true
|
||||
}
|
||||
},
|
||||
@@ -31,6 +43,12 @@ export default Ember.Route.extend({
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
model: function(params) {
|
||||
if (params.state) {
|
||||
filters.state_in = [params.state];
|
||||
}
|
||||
if (params.action) {
|
||||
filters.workflow_action_definition_identifier_in = [params.action];
|
||||
}
|
||||
return Ember.RSVP.hash({
|
||||
projects: this.store.findAll('panda/project'),
|
||||
organizations: this.store.findAll('panda/organization'),
|
||||
|
||||
Reference in New Issue
Block a user