show full path to prevent confusion
This commit is contained in:
parent
a5f65d678d
commit
b6279febc5
1 changed files with 2 additions and 4 deletions
|
@ -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>}
|
||||||
|
|
Loading…
Add table
Reference in a new issue