import ModalBase from 'ember-cli-dunlop/mixins/modal-base'
export default ModalBase.extend
  actions:
    edit_project_scenario: (project_scenario) ->
      redirect = =>
        @modal 'project/project-scenarios-show-grid',
          model: project_scenario.get('project')
      @modal 'project/edit-project-scenario',
        model: project_scenario
        close: redirect
        save: redirect

