mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
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"
|
anchorReference="anchorPosition"
|
||||||
>
|
>
|
||||||
<MenuItem onClick={onForceSelect}>Select</MenuItem>
|
<MenuItem onClick={onForceSelect}>Select</MenuItem>
|
||||||
<MenuItem onClick={onView}>View</MenuItem>
|
{isUrlMode ? (
|
||||||
<MenuItem onClick={onUpdateWrapper(false)}>Update</MenuItem>
|
<>
|
||||||
<MenuItem onClick={onUpdateWrapper(true)}>Update(Proxy)</MenuItem>
|
<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>
|
<MenuItem onClick={onDelete}>Delete</MenuItem>
|
||||||
</Menu>
|
</Menu>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user