Help: show Web UI version

This commit is contained in:
Alex Liebowitz 2017-01-02 14:19:37 -05:00
parent fa469253a3
commit 70953710a8

View file

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