feat: adjust profile item menu
This commit is contained in:
parent
3ed6938d4a
commit
f2c04621a5
@ -238,9 +238,15 @@ const ProfileItem: React.FC<Props> = (props) => {
|
||||
anchorReference="anchorPosition"
|
||||
>
|
||||
<MenuItem onClick={onForceSelect}>Select</MenuItem>
|
||||
{isUrlMode ? (
|
||||
<>
|
||||
<MenuItem onClick={onView}>View</MenuItem>
|
||||
<MenuItem onClick={onUpdateWrapper(false)}>Update</MenuItem>
|
||||
<MenuItem onClick={onUpdateWrapper(true)}>Update(Proxy)</MenuItem>
|
||||
</>
|
||||
) : (
|
||||
<MenuItem onClick={onView}>Edit</MenuItem>
|
||||
)}
|
||||
<MenuItem onClick={onDelete}>Delete</MenuItem>
|
||||
</Menu>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user