Files
ember-panda/app/components/modals/display-workflow-action-definitions.coffee
2017-12-21 11:51:55 +01:00

13 lines
632 B
CoffeeScript

import ModalBase from 'ember-cli-dunlop/mixins/modal-base'
export default ModalBase.extend
showAll: true
workflow_groups: Ember.computed.alias "model"
showTitles: Ember.computed "model.length", "title", ->
return false if @get("model.length") is 1 and @get('model.firstObject.name') is @get('title')
true
#workflow_action_definitions: Ember.computed 'model.[]', 'showAll', ->
# workflow_action_definitions = @get('model')
# unless @get('showAll')
# workflow_action_definitions = workflow_action_definitions.rejectBy('done')
# workflow_action_definitions.sortBy('workflow_group.name', 'smart_position')