Help: show Web UI version
This commit is contained in:
parent
fa469253a3
commit
70953710a8
1 changed files with 11 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue