From 123e6760bc04e94feb06ea2ed46efd818a3c917a Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sat, 9 Apr 2016 03:47:56 -0400 Subject: [PATCH] Finish pre-population; fix saving of "share diagnostic data" field --- js/gui.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/js/gui.js b/js/gui.js index d3d2826e8..243cbc7ce 100644 --- a/js/gui.js +++ b/js/gui.js @@ -403,7 +403,7 @@ var SettingsPage = React.createClass({ onRunOnStartChange: function (event) { this.storeSetting('run_on_startup', event.target.checked); }, - onChareDataChange: function (event) { + onShareDataChange: function (event) { this.storeSetting('upload_log', event.target.checked); }, onDownloadDirChange: function(event) { @@ -433,15 +433,15 @@ var SettingsPage = React.createClass({ }, getInitialState: function() { return { - isMaxUpload: false, - isMaxDownload: false, settings: null } }, componentWillMount: function() { lbry.getSettings(function(settings) { this.setState({ - settings: settings + settings: settings, + isMaxUpload: settings.max_upload != 0, + isMaxDownload: settings.max_download != 0 }); }.bind(this)); }, @@ -460,7 +460,7 @@ var SettingsPage = React.createClass({

Run on startup

@@ -472,25 +472,25 @@ var SettingsPage = React.createClass({

Share diagnostic data

Bandwidth limits

How much of your upload bandwidth may LBRY use? How much of your download bandwidth may LBRY use?