forked from github/plane
fix: Showing status for accounts not created in the workspace members (#1111)
This commit is contained in:
parent
5c632921f8
commit
aaffe37fbe
@ -66,6 +66,7 @@ const MembersSettings: NextPage = () => {
|
|||||||
role: item.role,
|
role: item.role,
|
||||||
status: true,
|
status: true,
|
||||||
member: true,
|
member: true,
|
||||||
|
accountCreated: true,
|
||||||
})) || []),
|
})) || []),
|
||||||
...(workspaceInvitations?.map((item) => ({
|
...(workspaceInvitations?.map((item) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@ -77,6 +78,7 @@ const MembersSettings: NextPage = () => {
|
|||||||
role: item.role,
|
role: item.role,
|
||||||
status: item.accepted,
|
status: item.accepted,
|
||||||
member: false,
|
member: false,
|
||||||
|
accountCreated: item?.accepted ? false : true,
|
||||||
})) || []),
|
})) || []),
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -200,6 +202,11 @@ const MembersSettings: NextPage = () => {
|
|||||||
<p>Pending</p>
|
<p>Pending</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{member?.status && !member?.accountCreated && (
|
||||||
|
<div className="mr-2 flex items-center justify-center rounded-full bg-blue-500/20 px-2 py-1 text-center text-xs text-blue-500">
|
||||||
|
<p>Account not created</p>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<CustomSelect
|
<CustomSelect
|
||||||
label={ROLE[member.role as keyof typeof ROLE]}
|
label={ROLE[member.role as keyof typeof ROLE]}
|
||||||
value={member.role}
|
value={member.role}
|
||||||
|
Loading…
Reference in New Issue
Block a user