Merge pull request #15904 from howard-stearns/new-account-wallets-in-simplified-ui

new-account wallets in simplified UI
This commit is contained in:
Howard Stearns 2019-07-10 15:09:59 -07:00 committed by GitHub
commit 7eaa29c147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,10 +76,20 @@ Rectangle {
return;
}
if (walletStatus === 5) {
topBarInventoryModel.getFirstPage();
} else {
// Show some error to the user
switch (walletStatus) {
case 1:
var randomNumber = Math.floor(Math.random() * 34) + 1;
var securityImagePath = "images/" + randomNumber.toString().padStart(2, '0') + ".jpg";
Commerce.getWalletAuthenticatedStatus(); // before writing security image, ensures that salt/account password is set.
Commerce.chooseSecurityImage(securityImagePath);
Commerce.generateKeyPair()
Commerce.getWalletStatus();
break;
case 5:
topBarInventoryModel.getFirstPage();
break;
default:
console.log('WARNING: SimplifiedTopBar.qml walletStatusResult:', walletStatus);
}
}