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,
|
||||
status: true,
|
||||
member: true,
|
||||
accountCreated: true,
|
||||
})) || []),
|
||||
...(workspaceInvitations?.map((item) => ({
|
||||
id: item.id,
|
||||
@ -77,6 +78,7 @@ const MembersSettings: NextPage = () => {
|
||||
role: item.role,
|
||||
status: item.accepted,
|
||||
member: false,
|
||||
accountCreated: item?.accepted ? false : true,
|
||||
})) || []),
|
||||
];
|
||||
|
||||
@ -200,6 +202,11 @@ const MembersSettings: NextPage = () => {
|
||||
<p>Pending</p>
|
||||
</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
|
||||
label={ROLE[member.role as keyof typeof ROLE]}
|
||||
value={member.role}
|
||||
|
Loading…
Reference in New Issue
Block a user