show title on 'create new torrent' page

This commit is contained in:
Feross Aboukhadijeh
2016-08-12 15:35:50 -07:00
parent adb41736d5
commit 45d46d7ae8
2 changed files with 6 additions and 2 deletions

View File

@@ -50,7 +50,11 @@ module.exports = class TorrentListController {
if (files.length === 0 || typeof files[0] !== 'string') {
this.state.location.go({
url: 'create-torrent',
files: files
files: files,
setup: (cb) => {
this.state.window.title = 'Create New Torrent'
cb(null)
}
})
return
}