|
|
|
@ -54,7 +54,7 @@ function ItemMenu(
|
|
|
|
toForeground: (() => void),
|
|
|
|
toForeground: (() => void),
|
|
|
|
): JSX.Element {
|
|
|
|
): JSX.Element {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Menu key='unique' className='cvat-object-item-menu'>
|
|
|
|
<Menu className='cvat-object-item-menu'>
|
|
|
|
<Menu.Item>
|
|
|
|
<Menu.Item>
|
|
|
|
<Button disabled={serverID === undefined} type='link' icon='link' onClick={createURL}>
|
|
|
|
<Button disabled={serverID === undefined} type='link' icon='link' onClick={createURL}>
|
|
|
|
Create object URL
|
|
|
|
Create object URL
|
|
|
|
@ -75,7 +75,6 @@ function ItemMenu(
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
{ objectType !== ObjectType.TAG && (
|
|
|
|
{ objectType !== ObjectType.TAG && (
|
|
|
|
<>
|
|
|
|
|
|
|
|
<Menu.Item>
|
|
|
|
<Menu.Item>
|
|
|
|
<Tooltip title={`${toBackgroundShortcut}`}>
|
|
|
|
<Tooltip title={`${toBackgroundShortcut}`}>
|
|
|
|
<Button type='link' onClick={toBackground}>
|
|
|
|
<Button type='link' onClick={toBackground}>
|
|
|
|
@ -84,6 +83,8 @@ function ItemMenu(
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
{ objectType !== ObjectType.TAG && (
|
|
|
|
<Menu.Item>
|
|
|
|
<Menu.Item>
|
|
|
|
<Tooltip title={`${toForegroundShortcut}`}>
|
|
|
|
<Tooltip title={`${toForegroundShortcut}`}>
|
|
|
|
<Button type='link' onClick={toForeground}>
|
|
|
|
<Button type='link' onClick={toForeground}>
|
|
|
|
@ -92,7 +93,6 @@ function ItemMenu(
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
</>
|
|
|
|
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
<Menu.Item>
|
|
|
|
<Menu.Item>
|
|
|
|
<Tooltip title={`${removeShortcut}`}>
|
|
|
|
<Tooltip title={`${removeShortcut}`}>
|
|
|
|
|