|
|
@ -22,18 +22,23 @@ export const SourceControlItemButtons = (props: SourceControlItemButtonsProps) = |
|
|
|
return <> |
|
|
|
return <> |
|
|
|
|
|
|
|
|
|
|
|
{status && status.indexOf("modified") === -1 ? <></> : |
|
|
|
{status && status.indexOf("modified") === -1 ? <></> : |
|
|
|
<button onClick={async () => await actions.checkoutfile(file.filename)} className='btn btn-sm btn-secondary mr-1 '> |
|
|
|
<button
|
|
|
|
|
|
|
|
data-id={`unDo${group.name}${path.basename(file.filename)}`} |
|
|
|
|
|
|
|
onClick={async () => await actions.checkoutfile(file.filename)} className='btn btn-sm btn-secondary mr-1 '> |
|
|
|
<FontAwesomeIcon icon={faUndo} className="" /></button> |
|
|
|
<FontAwesomeIcon icon={faUndo} className="" /></button> |
|
|
|
} |
|
|
|
} |
|
|
|
{status && status.indexOf("deleted") === -1 ? <></> : |
|
|
|
{status && status.indexOf("deleted") === -1 ? <></> : |
|
|
|
<button onClick={async () => { |
|
|
|
<button
|
|
|
|
|
|
|
|
data-id={`unDo${group.name}${path.basename(file.filename)}`} |
|
|
|
|
|
|
|
onClick={async () => { |
|
|
|
await actions.checkoutfile(file.filename) |
|
|
|
await actions.checkoutfile(file.filename) |
|
|
|
await actions.add({ filepath: file.filename })
|
|
|
|
await actions.add({ filepath: file.filename })
|
|
|
|
}} className='btn btn-sm btn-secondary mr-1 '> |
|
|
|
}} className='btn btn-sm btn-secondary mr-1 '> |
|
|
|
<FontAwesomeIcon icon={faUndo} className="" /></button> |
|
|
|
<FontAwesomeIcon icon={faUndo} className="" /></button> |
|
|
|
} |
|
|
|
} |
|
|
|
{status && status.indexOf("deleted") !== -1 ? <></> : |
|
|
|
{status && status.indexOf("deleted") !== -1 ? <></> : |
|
|
|
<button data-id={`unStage${group.name}${path.basename(file.filename)}`} onClick={async () => await actions.rm({ filepath: file.filename })} className='btn btn-sm btn-secondary mr-1 '> |
|
|
|
<button data-id={`unStage${group.name}${path.basename(file.filename)}`}
|
|
|
|
|
|
|
|
onClick={async () => await actions.rm({ filepath: file.filename })} className='btn btn-sm btn-secondary mr-1 '> |
|
|
|
<FontAwesomeIcon icon={faMinus} className="" /></button> |
|
|
|
<FontAwesomeIcon icon={faMinus} className="" /></button> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|