fix socket io name error
This commit is contained in:
parent
951eeea6d0
commit
5468895e34
@ -23,5 +23,5 @@ module.exports.broadcast_block = function(block) {
|
||||
};
|
||||
|
||||
module.exports.broadcastSyncInfo = function(syncInfo) {
|
||||
ios.sockets.emit('block', syncInfo);
|
||||
ios.sockets.emit('sync', syncInfo);
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', 'Sync', function ($scope, $routeParams, $location, Global, Status, Sync) {
|
||||
angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', '$rootScope', 'Global', 'Status', 'Sync', function ($scope, $routeParams, $location, $rootScope, Global, Status, Sync) {
|
||||
$scope.global = Global;
|
||||
|
||||
$scope.getStatus = function(q) {
|
||||
|
||||
@ -75,6 +75,11 @@
|
||||
<h3>sync status</h3>
|
||||
<table class="table table-striped" data-ng-init="getSync()">
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr data-ng-show="sync.error">
|
||||
<td colspan="2"> <span class="text-danger"> {{ sync.err }} </span>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sync Progress</td>
|
||||
<td> {{(100 * sync.syncedBlocks/sync.blocksToSync)| number:2}}%
|
||||
|
||||
Loading…
Reference in New Issue
Block a user