Hide edit profile button while editing, closes #301.

Block UI when account edit request is sent, closes #303.
This commit is contained in:
Paul
2021-10-10 16:32:30 +01:00
parent 89c0026fa2
commit 4ec598db81
2 changed files with 16 additions and 10 deletions

View File

@@ -185,16 +185,16 @@ export const UserProfile = observer(
</Tooltip>
</Localizer>
)}
{user.relationship === RelationshipStatus.User && (
<IconButton
onClick={() => {
onClose?.();
if (dummy) return;
history.push(`/settings/profile`);
}}>
<Edit size={28} />
</IconButton>
)}
{user.relationship === RelationshipStatus.User &&
!dummy && (
<IconButton
onClick={() => {
onClose?.();
history.push(`/settings/profile`);
}}>
<Edit size={28} />
</IconButton>
)}
{!user.bot &&
flags != 2 &&
flags != 4 &&