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