From ce197d4b2950425c07d0e1a563039a2f26fea07a Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sat, 7 Nov 2015 11:40:35 -0300 Subject: [PATCH] better wallet info --- public/views/includes/walletInfo.html | 3 +-- public/views/preferencesInformation.html | 23 ++++++++++++++++++++ src/js/controllers/preferencesInformation.js | 2 +- src/js/services/profileService.js | 2 -- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/public/views/includes/walletInfo.html b/public/views/includes/walletInfo.html index c7bd73967..920537b6f 100644 --- a/public/views/includes/walletInfo.html +++ b/public/views/includes/walletInfo.html @@ -1,9 +1,8 @@ {{index.m}}-of-{{index.n}} - -Account: #{{index.account || 0}} +#{{index.account || 0}} diff --git a/public/views/preferencesInformation.html b/public/views/preferencesInformation.html index bd67a0fc2..eb510141c 100644 --- a/public/views/preferencesInformation.html +++ b/public/views/preferencesInformation.html @@ -55,6 +55,29 @@ +
  • + Hardware Wallet + + {{index.externalSource}} + +
  • + +
  • + + + No private key + +
  • + +
  • + Account ({{derivationStrategy}}) + + #{{index.account}} + +
  • + + +

    Copayers

  • diff --git a/src/js/controllers/preferencesInformation.js b/src/js/controllers/preferencesInformation.js index 3969f26b5..8f04e8077 100644 --- a/src/js/controllers/preferencesInformation.js +++ b/src/js/controllers/preferencesInformation.js @@ -7,7 +7,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation', var c = fc.credentials; this.init = function() { - var basePath = profileService.getUtils().getBaseAddressDerivationPath(c.derivationStrategy, c.network, 0); + var basePath = profileService.getUtils().getBaseAddressDerivationPath(c.derivationStrategy, c.network, c.account); $scope.walletName = c.walletName; $scope.walletId = c.walletId; diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 2def22e4b..8ac0ead58 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -46,8 +46,6 @@ angular.module('copayApp.services') client.setNotificationsInterval(BACKGROUND_UPDATE_PERIOD); }); root.focusedClient.setNotificationsInterval(FOREGROUND_UPDATE_PERIOD); - - console.log('[profileService.js.49] SETTING...'); //TODO } return cb();