add host port to bitcoind error message
This commit is contained in:
parent
25b6011b7c
commit
8b88a01f65
@ -44,7 +44,9 @@ function spec() {
|
|||||||
|
|
||||||
PeerSync.prototype.info = function() {
|
PeerSync.prototype.info = function() {
|
||||||
return {
|
return {
|
||||||
connected: this.connected
|
connected: this.connected,
|
||||||
|
host: this.peerdb[0].ipv4,
|
||||||
|
port: this.peerdb[0].port
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,8 @@ angular.module('insight.connection').controller('ConnectionController',
|
|||||||
PeerSync.get({},
|
PeerSync.get({},
|
||||||
function(peer) {
|
function(peer) {
|
||||||
$scope.apiOnline = peer.connected;
|
$scope.apiOnline = peer.connected;
|
||||||
|
$scope.host = peer.host;
|
||||||
|
$scope.port = peer.port;
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
$scope.apiOnline = false;
|
$scope.apiOnline = false;
|
||||||
|
|||||||
@ -1,10 +1,23 @@
|
|||||||
<div class="connection-status container" data-ng-controller="ConnectionController">
|
<div class="connection-status container" data-ng-controller="ConnectionController">
|
||||||
|
|
||||||
<!-- apiOnline disabled || !apiOnline -->
|
<div class="alert alert-danger"
|
||||||
<div class="alert alert-danger" data-ng-show="!serverOnline || !clienteOnline || !apiOnline", data-ng-init="getConnStatus()">
|
data-ng-show="!serverOnline || !clienteOnline || !apiOnline"
|
||||||
|
data-ng-init="getConnStatus()">
|
||||||
|
|
||||||
<strong>Error!</strong>
|
<strong>Error!</strong>
|
||||||
<p data-ng-show="!apiOnline">Can't connect to bitcoind to get live updates from the p2p network.</p>
|
|
||||||
<p data-ng-show="!serverOnline">Can't connect to insight server. Attempting to reconnect... </p>
|
<p data-ng-show="!apiOnline">
|
||||||
<p data-ng-show="!clienteOnline">Can't connect to internet. Please, check your connection.</p>
|
Can't connect to bitcoind to get live updates from the p2p network.
|
||||||
|
(Tried connecting to bitcoind at {{host}}:{{port}} and failed.)
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p data-ng-show="!serverOnline">
|
||||||
|
Can't connect to insight server. Attempting to reconnect...
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p data-ng-show="!clienteOnline">
|
||||||
|
Can't connect to internet. Please, check your connection.
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user