Skip to content

Commit

Permalink
Merge pull request #1802 from matiu/fix/subscribe
Browse files Browse the repository at this point in the history
fix subscribe
  • Loading branch information
eordano committed Nov 13, 2014
2 parents 088ba88 + d7d29c6 commit 125a728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions js/models/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,7 @@ Wallet.prototype.seedCopayer = function(pubKey) {


Wallet.prototype._newAddresses = function(dontUpdateUx) {
if (this.publicKeyRing.isComplete()) {
this.subscribeToAddresses();

};
this.subscribeToAddresses();
this.emitAndKeepAlive('newAddresses', dontUpdateUx);
};

Expand Down Expand Up @@ -2182,8 +2179,9 @@ Wallet.prototype.getAddressesStr = function(opts) {
};

Wallet.prototype.subscribeToAddresses = function() {
if (!this.publicKeyRing.isComplete()) return;

var addrInfo = this.publicKeyRing.getAddressesInfo();
console.log('[Wallet.js.2181:addrInfo:]',addrInfo); //TODO
this.blockchain.subscribe(_.pluck(addrInfo, 'addressStr'));
log.debug('Subscribed to ' + addrInfo.length + ' addresses'); //TODO
};
Expand Down
5 changes: 3 additions & 2 deletions views/includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ <h1>
<i class="icon-arrow-down size-16 vm"></i>
</a>
<ul ng-show="hoverMenu" ng-class="{'hover': hoverMenu}">
<li><a class="text-gray size-16" href="#!/create" title="Add new wallet">
<i class="fi-plus m10r"></i> {{'Add new wallet'|translate}}</a></li>
<li>
<a class="text-gray size-16" href="#!/create" title="Create new wallet">
<i class="fi-plus m10r"></i> {{'Create new wallet'|translate}}</a></li>
<li><a class="text-gray size-16" href="#!/join" title="Join an existent wallet">
<i class="fi-torsos-all m10r"></i> {{'Join an existent wallet'|translate}}</a></li>
<li><a class="text-gray size-16" href="#!/import" title="Import a backup">
Expand Down

0 comments on commit 125a728

Please sign in to comment.