.ui.small.buttons.select-organization
  = ui-dropdown class='button' selected=scope_organization onChange=(action 'set_scope_organization') as |execute mapper|
    .default.text= t 'action.select_model' modelPath='models.organization'
    i.dropdown.icon
    .menu
      each relevant_organizations as |organization|
        .item data-value='{{map-value mapper organization}}'
          = organization.name
  if scope_organization
    button.ui.icon.button{action 'set_scope_organization' null}
      i.close.icon
= yield
