UI changes
This commit is contained in:
@@ -10,9 +10,14 @@
|
||||
return window.uiState.isWalletConfigured;
|
||||
}
|
||||
|
||||
function _isOnline() {
|
||||
return window.uiState.isOnline;
|
||||
}
|
||||
|
||||
return {
|
||||
isWalletLocked: _isWalletLocked,
|
||||
isWalletConfigured: _isWalletConfigured
|
||||
isWalletConfigured: _isWalletConfigured,
|
||||
isOnline: _isOnline
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -34,14 +39,18 @@
|
||||
|
||||
window.addEventListener('load', ()=> {
|
||||
console.log('Main window load');
|
||||
if (UiState.isWalletConfigured()) {
|
||||
if (UiState.isWalletLocked()) {
|
||||
setMainWindow('unlock_window')
|
||||
if (UiState.isOnline()) {
|
||||
if (UiState.isWalletConfigured()) {
|
||||
if (UiState.isWalletLocked()) {
|
||||
setMainWindow('unlock_window');
|
||||
} else {
|
||||
setMainWindow('app_window');
|
||||
}
|
||||
} else {
|
||||
setMainWindow('app_window')
|
||||
setMainWindow('create_window');
|
||||
}
|
||||
} else {
|
||||
setMainWindow('create_window')
|
||||
setMainWindow('offline_window');
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user