show full path to prevent confusion

This commit is contained in:
btzr-io 2017-09-23 22:46:22 -06:00 committed by Jeremy Kauffman
parent a5f65d678d
commit b6279febc5

View file

@ -34,8 +34,6 @@ class FileDetails extends React.PureComponent {
? path.normalize(fileInfo.download_path) ? path.normalize(fileInfo.download_path)
: null; : null;
const directory = downloadPath ? path.dirname(downloadPath) : null;
return ( return (
<div> <div>
<FileActions uri={uri} /> <FileActions uri={uri} />
@ -62,12 +60,12 @@ class FileDetails extends React.PureComponent {
<tr> <tr>
<td>{__("License")}</td><td>{license}</td> <td>{__("License")}</td><td>{license}</td>
</tr> </tr>
{directory && {downloadPath &&
<tr> <tr>
<td>{__("Downloaded to")}</td> <td>{__("Downloaded to")}</td>
<td> <td>
<Link onClick={() => openFolder(downloadPath)}> <Link onClick={() => openFolder(downloadPath)}>
{directory} {downloadPath}
</Link> </Link>
</td> </td>
</tr>} </tr>}