mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
new-account wallets in simplified UI
This commit is contained in:
parent
7aef864d7f
commit
79a3d45eae
1 changed files with 13 additions and 3 deletions
|
@ -76,10 +76,20 @@ Rectangle {
|
|||
return;
|
||||
}
|
||||
|
||||
if (walletStatus === 5) {
|
||||
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();
|
||||
} else {
|
||||
// Show some error to the user
|
||||
break;
|
||||
default:
|
||||
console.log('WARNING: SimplifiedTopBar.qml walletStatusResult:', walletStatus);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue