Clarify 'Add to organization' copy on dropdown when no roles
parent
f2b8d37a3d
commit
47283243a1
|
@ -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)}
|
||||||
|
|
Loading…
Reference in New Issue