Merge pull request #117 from lbryio/show-ui-version
Show UI version on Help page
This commit is contained in:
commit
2b5557e781
1 changed files with 11 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue