App.modals.SelectEmployeeController = App.modals.BaseController.extend
  employee: null
  title_path: 'employee.select_modal.title'
  employees: (-> @get('all_employees').filterBy('active') ).property('all_employees.@each.active')
  all_employees: (-> @store.peekAll('employee')).property()
  actions:
    selectEmployee: (employee)->
      @set 'employee', employee
      @send 'ok'
