diff --git a/assets/scripts/kmd_wallet_dashboard.js b/assets/scripts/kmd_wallet_dashboard.js
index d938ce0..0305c90 100644
--- a/assets/scripts/kmd_wallet_dashboard.js
+++ b/assets/scripts/kmd_wallet_dashboard.js
@@ -15,6 +15,7 @@ var KMDWalletDashboard = function() {
KMDfillTxHistoryT();
});
+
}
var handle_KMD_Send = function() {
@@ -46,6 +47,7 @@ var KMDWalletDashboard = function() {
});
$('.showkmdwalletaddrs').selectpicker({ style: 'btn-info' });
+ $('.showkmdwalletaddrs').selectpicker('refresh');
});
$('.showkmdwalletaddrs').on('change', function(){
@@ -226,6 +228,12 @@ var KMDWalletDashboard = function() {
});
};
+ var handleWalletDashboardAlet = function() {
+ $('#extcoin-wallet-connection-alert-btn').click(function(){
+ RunKMDInitFunctions();
+ });
+ }
+
return {
//main function to initiate the module
init: function() {
@@ -236,6 +244,7 @@ var KMDWalletDashboard = function() {
KMDWalletRecieve();
KMDWalletSettings();
//RunKMDInitFunctions();
+ handleWalletDashboardAlet();
}
};
@@ -259,16 +268,25 @@ function RunKMDInitFunctions() {
console.log('Could not connect to external wallet. Is external wallet running?');
toastr.error("Connection Error. Is external wallet running?", "Wallet Notification");
$('#extcoin-wallet').hide();
+ $('#extcoin-wallet-connection-alert').show();
}
if ( check1[0] == 'null return' ) {
console.log('Could not connect to external wallet. Is iguana connected to external wallet?');
toastr.error("Connection Error. Is iguana connected to external wallet?", "Wallet Notification");
$('#extcoin-wallet').hide();
+ $('#extcoin-wallet-connection-alert').show();
}
if ( check1[0] == 'connected' ) {
getTotalKMDBalance();
KMDfillTxHistoryT();
$('#extcoin-wallet').show();
+ $('#extcoin-wallet-connection-alert').hide();
+
+ $('#kmd_wallet_dashoard_section').show();
+ $('#kmd_wallet_dashboardinfo').show();
+ $('#kmd_wallet_send').hide();
+ $('#kmd_wallet_recieve_section').hide();
+ $('#kmd_wallet_settings').hide();
}
//KMDWalletDashboard.init()
$('#kmd_wallet_recieve_section').hide();
diff --git a/index.html b/index.html
index d0df5a9..2129692 100755
--- a/index.html
+++ b/index.html
@@ -618,6 +618,15 @@
+
+
+
Opps! Something is no right...
+
Could not connect to external wallet. Reasons can be: - Your External Wallet/daemon isn't running
+ - Your External Wallet/daemon is running, but iguana is not given command to connect to External Wallet/daemon
+ - Your External Wallet/daemon is setup, but is not setup with config settings like server=1 rpcport= rpcuser= rpcpassword=