feat(ui): click on torrent size opens torrent files
This commit is contained in:
parent
8e4940ec52
commit
79f23d00bd
@ -168,6 +168,14 @@ const TorrentInformation = (props) => {
|
|||||||
id="torrentSizeId"
|
id="torrentSizeId"
|
||||||
primaryText={__('Torrent Size')}
|
primaryText={__('Torrent Size')}
|
||||||
secondaryText={formatBytes(torrent.size)}
|
secondaryText={formatBytes(torrent.size)}
|
||||||
|
onClick={() => {
|
||||||
|
if(!props.parent)
|
||||||
|
return
|
||||||
|
|
||||||
|
props.parent.setState({
|
||||||
|
value: 'files'
|
||||||
|
})
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<ListItem
|
<ListItem
|
||||||
// leftAvatar={<Avatar icon={<EditorInsertChart />} backgroundColor={yellow600} />}
|
// leftAvatar={<Avatar icon={<EditorInsertChart />} backgroundColor={yellow600} />}
|
||||||
|
Loading…
Reference in New Issue
Block a user