App.modals.AddSectionElementController = @App.modals.BaseController.extend
  title_path: 'section_element.modal.title'
  svg_elements: (-> @store.findAll 'svg_element').property()
  actions:
    addSectionElement: (svg_element)->
      section_element = @store.createRecord 'section-element'
      section_element.copy_values svg_element
      section_element.set 'section', @get('model')
      @send 'ok'

