Add message when torrent finishes downloading

master
Torjus 2018-07-30 12:47:02 +02:00
parent 48b8cdf26c
commit 730c4e23c7
1 changed files with 5 additions and 1 deletions

View File

@ -121,10 +121,14 @@ class FileChatEntry extends Component
{this.state.files && ( {this.state.files && (
<div> <div>
<p>Torrent finished downloading.</p>
{this.state.files.map((file, i) => ( {this.state.files.map((file, i) => (
<div key={i}> <div key={i}>
{file.name}
<button onClick={() => this.saveFile(file)}> <button onClick={() => this.saveFile(file)}>
Save {file.name} Save
</button> </button>
</div> </div>
))} ))}