1
0

Ui changes

This commit is contained in:
Scott E. Graves
2017-03-21 18:33:33 -05:00
parent ac4872557a
commit 87b0148865
7 changed files with 34 additions and 49 deletions

View File

@@ -59,6 +59,9 @@
Wallet: _wallet,
setBlockHeight: (height) => {
setInnerText('ID_BlockHeight', height);
},
setServerVersion: (version) => {
setInnerText('ID_ServerVersion', version);
}
};
})();
@@ -81,16 +84,11 @@
return window.uiState.isWalletLocked;
}
function _serverVersion() {
return window.uiState.serverVersion;
}
return {
clientVersion: _clientVersion,
isOnline: _isOnline,
isWalletConfigured: _isWalletConfigured,
isWalletLocked: _isWalletLocked,
serverVersion: _serverVersion
isWalletLocked: _isWalletLocked
};
})();
@@ -202,7 +200,7 @@
console.log('Main window load');
AppActions.stopApp();
document.getElementById('ID_SiaDrive').innerText = 'SiaDrive ' + UiState.clientVersion();
document.getElementById('ID_ServerVersion').innerText = UiState.serverVersion();
document.getElementById('ID_ServerVersion').innerText = '...';
if (UiState.isOnline()) {
if (UiState.isWalletConfigured()) {
if (UiState.isWalletLocked()) {