|
|
@ -17,17 +17,17 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
{(props.hover && !props.isEditable) && <div className={`d-flex flex-row align-items-center`} style={{ marginLeft: '6rem' }}> |
|
|
|
{(!props.hover && !props.isEditable) && <div className="d-flex flex-row align-items-center" style={{ marginLeft: '6rem' }}> |
|
|
|
{ |
|
|
|
{ |
|
|
|
props.file.isDirectory ? ( |
|
|
|
props.file.isDirectory ? ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<CustomTooltip |
|
|
|
{/* <CustomTooltip |
|
|
|
placement="right-start" |
|
|
|
placement="right-start" |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
tooltipText={<FormattedMessage id="filePanel.edit" />} |
|
|
|
tooltipText={<FormattedMessage id="filePanel.edit" />} |
|
|
|
tooltipId={`filePanel.edit.${props.file.path}`} |
|
|
|
tooltipId={`filePanel.edit.${props.file.path}`} |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> */} |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-folder fa-1x remixui_icons_space remixui_icons" |
|
|
|
className="far fa-folder fa-1x remixui_icons_space remixui_icons" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
@ -37,14 +37,14 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
console.log('clicked on folder icon') |
|
|
|
console.log('clicked on folder icon') |
|
|
|
}} |
|
|
|
}} |
|
|
|
></span> |
|
|
|
></span> |
|
|
|
</CustomTooltip> |
|
|
|
{/* </CustomTooltip> */} |
|
|
|
<CustomTooltip |
|
|
|
{/* <CustomTooltip |
|
|
|
placement="right-start" |
|
|
|
placement="right-start" |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
tooltipText={<FormattedMessage id="fileExplorer.edit" />} |
|
|
|
tooltipText={<FormattedMessage id="fileExplorer.edit" />} |
|
|
|
tooltipId={`fileExplorer.edit.${props.file.path}`} |
|
|
|
tooltipId={`fileExplorer.edit.${props.file.path}`} |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> */} |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-file fa-1x remixui_icons remixui_icons_space" |
|
|
|
className="far fa-file fa-1x remixui_icons remixui_icons_space" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
@ -53,17 +53,17 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
console.log('clicked on file icon') |
|
|
|
console.log('clicked on file icon') |
|
|
|
}} |
|
|
|
}} |
|
|
|
></span> |
|
|
|
></span> |
|
|
|
</CustomTooltip> |
|
|
|
{/* </CustomTooltip> */} |
|
|
|
</> |
|
|
|
</> |
|
|
|
) : null |
|
|
|
) : null |
|
|
|
} |
|
|
|
} |
|
|
|
<CustomTooltip |
|
|
|
{/* <CustomTooltip |
|
|
|
placement="right-start" |
|
|
|
placement="right-start" |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
tooltipText={<FormattedMessage id="fileExplorer.edit" />} |
|
|
|
tooltipText={<FormattedMessage id="fileExplorer.edit" />} |
|
|
|
tooltipId={`fileExplorer.edit.${props.file.path}`} |
|
|
|
tooltipId={`fileExplorer.edit.${props.file.path}`} |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> */} |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-pen fa-1x remixui_icons remixui_icons_space" |
|
|
|
className="far fa-pen fa-1x remixui_icons remixui_icons_space" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
@ -74,14 +74,14 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
console.log('clicked on edit icon') |
|
|
|
console.log('clicked on edit icon') |
|
|
|
}} |
|
|
|
}} |
|
|
|
></span> |
|
|
|
></span> |
|
|
|
</CustomTooltip> |
|
|
|
{/* </CustomTooltip> */} |
|
|
|
<CustomTooltip |
|
|
|
{/* <CustomTooltip |
|
|
|
placement="right-start" |
|
|
|
placement="right-start" |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
delay={{show: 1000, hide: 0}} |
|
|
|
tooltipText={<FormattedMessage id="fileExplorer.edit" />} |
|
|
|
tooltipText={<FormattedMessage id="fileExplorer.edit" />} |
|
|
|
tooltipId={`fileExplorer.edit.${props.file.path}`} |
|
|
|
tooltipId={`fileExplorer.edit.${props.file.path}`} |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> */} |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-trash fa-1x remixui_icons remixui_icons_space" |
|
|
|
className="far fa-trash fa-1x remixui_icons remixui_icons_space" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
@ -92,7 +92,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
await props.deletePathOp(props.file.path) |
|
|
|
await props.deletePathOp(props.file.path) |
|
|
|
}} |
|
|
|
}} |
|
|
|
></span> |
|
|
|
></span> |
|
|
|
</CustomTooltip> |
|
|
|
{/* </CustomTooltip> */} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
} |
|
|
|
</> |
|
|
|
</> |
|
|
|