change variable 'default_download_directory' to 'download_directory'

This commit is contained in:
Jack 2016-04-22 02:48:07 -04:00
parent 5a2f014cb7
commit bcb7bc373b
3 changed files with 4 additions and 4 deletions

BIN
dist.zip

Binary file not shown.

View file

@ -29,7 +29,7 @@ var SettingsPage = React.createClass({
this.storeSetting('upload_log', event.target.checked);
},
onDownloadDirChange: function(event) {
this.storeSetting('default_download_directory', event.target.value);
this.storeSetting('download_directory', event.target.value);
},
onMaxUploadPrefChange: function(isLimited) {
if (!isLimited) {
@ -84,7 +84,7 @@ var SettingsPage = React.createClass({
<section>
<h4>Download directory</h4>
<div className="help">Where would you like the files you download from LBRY to be saved?</div>
<input style={downloadDirectoryFieldStyles} type="text" name="default_download_directory" defaultValue={this.state.settings.default_download_directory} onChange={this.onDownloadDirChange}/>
<input style={downloadDirectoryFieldStyles} type="text" name="download_directory" defaultValue={this.state.settings.download_directory} onChange={this.onDownloadDirChange}/>
</section>
<section>
<h4>Max Upload</h4>

View file

@ -5,8 +5,8 @@ var StartPage = React.createClass({
render: function() {
return (
<main>
<h1>LBRY is not running</h1>
<Link href="lbry://lbry" label="Start LBRY" />
<h1>LBRY has closed</h1>
<Link href="lbry://lbry" label="Click here to start LBRY" />
</main>
);
}