alert, if no account is chosen

This commit is contained in:
viktor 2017-06-26 16:38:48 +03:00
parent 1391914b6d
commit 4ab03ae2c1
3 changed files with 5 additions and 1 deletions

View File

@ -989,6 +989,8 @@ function startDapp(web3, isOraclesNetwork) {
if (!_isActive) swal("Warning", "Current key isn't valid voting key. Please, choose your voting key in MetaMask client and reload the page. Check Oracles network <a href='https://github.com/oraclesorg/oracles-wiki' target='blank'>wiki</a> for more info.", "warning");
else $(".choose-key-button").trigger("click");
});
} else if (accounts.length == 0) {
swal("Warning", "You haven't chosen any account in MetaMask. Please, choose your voting key in MetaMask client and reload the page. Check Oracles network <a href='https://github.com/oraclesorg/oracles-wiki' target='blank'>wiki</a> for more info.", "warning");
}
//choose key button onclick event

View File

@ -98,6 +98,8 @@ function startDapp(web3, isOraclesNetwork) {
if (!_isActive) swal("Warning", "Current key isn't valid voting key. Please, choose your voting key in MetaMask client and reload the page. Check Oracles network <a href='https://github.com/oraclesorg/oracles-wiki' target='blank'>wiki</a> for more info.", "warning");
else $(".choose-key-button").trigger("click");
});
} else if (accounts.length == 0) {
swal("Warning", "You haven't chosen any account in MetaMask. Please, choose your voting key in MetaMask client and reload the page. Check Oracles network <a href='https://github.com/oraclesorg/oracles-wiki' target='blank'>wiki</a> for more info.", "warning");
}
//choose key button onclick event

View File

@ -78,6 +78,6 @@
</div>
</footer>
<script src="./assets/javascripts/sweetalert2.min.js" type="text/javascript"></script>
<script src="./assets/javascripts/application.js?v=1.65" type="text/javascript"></script>
<script src="./assets/javascripts/application.js?v=1.66" type="text/javascript"></script>
</body>
</html>