Skip to content
Snippets Groups Projects
Unverified Commit f2c04621 authored by GyDi's avatar GyDi
Browse files

feat: adjust profile item menu

parent 3ed6938d
No related branches found
No related tags found
No related merge requests found
...@@ -238,9 +238,15 @@ const ProfileItem: React.FC<Props> = (props) => { ...@@ -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>
</> </>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment