Merge pull request #117 from lbryio/show-ui-version

Show UI version on Help page
This commit is contained in:
Jeremy Kauffman 2017-01-02 15:01:46 -05:00 committed by GitHub
commit 2b5557e781

View file

@ -27,7 +27,7 @@ var HelpPage = React.createClass({
document.title = "Help";
},
render: function() {
let ver, osName, platform, newVerLink;
let ver, osName, platform, newVerLink, uiVersion;
if (this.state.versionInfo) {
ver = this.state.versionInfo;
@ -43,6 +43,12 @@ var HelpPage = React.createClass({
platform = `Windows (${ver.platform})`;
newVerLink = 'https://lbry.io/get/lbry.msi';
}
if (ver.ui_version == 'user-specified') {
uiVersion = '(User specified)';
} else {
uiVersion = ver.ui_version || '(Unknown)';
}
} else {
ver = null;
}
@ -86,6 +92,10 @@ var HelpPage = React.createClass({
<th>lbryum (wallet)</th>
<td>{ver.lbryum_version}</td>
</tr>
<tr>
<th>lbry-web-ui (interface)</th>
<td>{uiVersion}</td>
</tr>
<tr>
<th>Platform</th>
<td>{platform}</td>