Clarify 'Add to organization' copy on dropdown when no roles

pull/10616/head
Jared Scheib 2017-11-03 02:40:07 -07:00
parent f2b8d37a3d
commit 47283243a1
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ const UsersTableOrgCell = ({
<td style={{width: colOrg}}>
<Dropdown
items={organizations
.filter(org => {
return !(org.name === DEFAULT_ORG_NAME || org.name === NO_ORG)
})
.filter(
org => !(org.name === DEFAULT_ORG_NAME || org.name === NO_ORG)
)
.map(r => ({
...r,
text: r.name,
}))}
selected={NO_ORG}
selected={'Add to organization'}
// TODO: assigning role here may not be necessary especially once
// default organization roles are implemented
onChoose={onChangeUserOrg(user, MEMBER_ROLE)}