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