Help: Show LBRY ID in "About" section

This commit is contained in:
Alex Liebowitz 2016-11-23 20:35:34 -05:00
parent a0fb58415e
commit 70076d8a9e

View file

@ -17,10 +17,12 @@ var HelpPage = React.createClass({
document.title = "Help";
},
render: function() {
let ver, osName, platform, newVerLink;
let ver, osName, platform, newVerLink, lbryId;
if (this.state.versionInfo) {
ver = this.state.versionInfo;
lbryId = ver.lbry_id;
if (ver.os_system == 'Darwin') {
osName = (parseInt(ver.os_release.match(/^\d+/)) < 16 ? 'Mac OS X' : 'Mac OS');
@ -80,6 +82,10 @@ var HelpPage = React.createClass({
<th>Platform</th>
<td>{platform}</td>
</tr>
<tr>
<th>Installation ID</th>
<td>{lbryId}</td>
</tr>
</tbody>
</table>
</section>