Skip to content
Snippets Groups Projects
Commit e0cb2991 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

- Peers: fix icons

- Block entity: clean raw attribute (not used)
parent c8bd2d0e
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,8 @@ Block.prototype.parseData = function() { ...@@ -51,6 +51,8 @@ Block.prototype.parseData = function() {
// TX // TX
this.transactions = this.parseTransactions(this.transactions); this.transactions = this.parseTransactions(this.transactions);
delete this.raw; // not need
}; };
Block.prototype.cleanData = function() { Block.prototype.cleanData = function() {
...@@ -62,6 +64,8 @@ Block.prototype.cleanData = function() { ...@@ -62,6 +64,8 @@ Block.prototype.cleanData = function() {
delete this.excluded; delete this.excluded;
delete this.certifications; delete this.certifications;
delete this.transactions; delete this.transactions;
delete this.raw; // not need
}; };
Block.prototype.parseArrayValues = function(array, itemObjProperties){ Block.prototype.parseArrayValues = function(array, itemObjProperties){
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
ng-click="selectPeer(peer)"> ng-click="selectPeer(peer)">
<i class="icon ion-android-desktop"></i> <i class="icon ion-android-desktop"></i>
<b class="positive" ng-class="{'ion-android-person': peer.uid}" style="position: absolute; top: 11px; left: 27px;"></b> <b class="ion-android-person" ng-if="peer.uid" style="position: absolute; top: 11px; left: 27px;"></b>
<div class="row no-padding"> <div class="row no-padding">
<div class="col no-padding"> <div class="col no-padding">
......
...@@ -4,26 +4,27 @@ ...@@ -4,26 +4,27 @@
</ion-nav-title> </ion-nav-title>
<ion-content class="has-header padding"> <ion-content class="has-header padding">
<div class="list"> <div class="list">
<div class="item item-divider"> <div class="item item-divider">
<h2 translate>PEER.KNOWN_PEERS</h2> <h2 translate>PEER.KNOWN_PEERS</h2>
</div> </div>
<div class="item center" ng-if="!loaded"> <div class="item center" ng-if="!loaded">
<ion-spinner class="icon" icon="android"></ion-spinner> <ion-spinner class="icon" icon="android"></ion-spinner>
</div> </div>
<a class="peer-item item item-icon-left" <a class="peer-item item item-icon-left"
collection-repeat="peer in peers" collection-repeat="peer in peers"
ng-class="{ assertive: !peer.online, balanced: peer.online }" ng-class="{ assertive: !peer.online, balanced: peer.online }"
target="_blank" target="_blank"
ng-href="{{peer.getURL()}}/blockchain/current"> ng-href="{{peer.getURL()}}/blockchain/current">
<i class="icon ion-android-globe"></i> <i class="icon ion-android-desktop"></i>
<h3><span ng-class="{ positive: peer.uid }">{{peer.uid || peer.pubkey.substr(0,8)}}</span> <span class="gray">{{peer.dns && ' | ' + peer.dns}}</span></h3> <b class="ion-android-person" ng-if="peer.uid" style="position: absolute; top: 13px; left: 27px;"></b>
<h4>{{peer.getServer()}} <span class="gray">| {{'PEER.SIGNED_ON_BLOCK' | translate}}</span> #{{peer.blockNumber}}</h4> <h3><span ng-class="{ positive: peer.uid }">{{peer.uid || peer.pubkey.substr(0,8)}}</span> <span class="gray">{{peer.dns && ' | ' + peer.dns}}</span></h3>
<span class="badge" ng-class="{ 'badge-balanced': peer.hasMainConsensusBlock, 'badge-energized': peer.hasConsensusBlock }">{{peer.current.number}}</span> <h4>{{peer.getServer()}} <span class="gray">| {{'PEER.SIGNED_ON_BLOCK' | translate}}</span> #{{peer.blockNumber}}</h4>
</a> <span class="badge" ng-class="{ 'badge-balanced': peer.hasMainConsensusBlock, 'badge-energized': peer.hasConsensusBlock }">{{peer.current.number}}</span>
</div> </a>
</ion-content> </div>
</ion-content>
</ion-view> </ion-view>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment