diff --git a/src/js/controllers/addresses.js b/src/js/controllers/addresses.js new file mode 100644 index 000000000..1425ac50f --- /dev/null +++ b/src/js/controllers/addresses.js @@ -0,0 +1,6 @@ +'use strict'; + +angular.module('copayApp.controllers').controller('addressesController', function($scope, $stateParams, profileService, walletService) { + $scope.wallet = profileService.getWallet($stateParams.walletId); + +}); diff --git a/src/js/controllers/tab-receive.js b/src/js/controllers/tab-receive.js index ea8b9778a..cae89c917 100644 --- a/src/js/controllers/tab-receive.js +++ b/src/js/controllers/tab-receive.js @@ -48,6 +48,12 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi }, 100); }; + $scope.showAddresses = function() { + $state.transitionTo('tabs.receive.addresses', { + walletId: $scope.wallet.credentials.walletId + }); + }; + $scope.openBackupNeededModal = function() { $ionicModal.fromTemplateUrl('views/includes/backupNeededPopup.html', { scope: $scope, diff --git a/src/js/routes.js b/src/js/routes.js index cd935dda2..e00498966 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -616,6 +616,31 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr } }) + /* + * + * Addresses + * + */ + + .state('tabs.receive.addresses', { + url: '/addresses/:walletId', + views: { + 'tab-receive@tabs': { + controller: 'addressesController', + templateUrl: 'views/addresses.html' + } + } + }) + .state('tabs.receive.allAddresses', { + url: '/allAddresses/:walletId', + views: { + 'tab-receive@tabs': { + controller: 'addressesController', + templateUrl: 'views/allAddresses.html' + } + } + }) + /* * * Init backup flow diff --git a/www/views/addresses.html b/www/views/addresses.html new file mode 100644 index 000000000..ad66c733b --- /dev/null +++ b/www/views/addresses.html @@ -0,0 +1,35 @@ + + + {{'Wallet Addresses' | translate}} + + + + + +
+
+ Translation Credits +
+
kinoshitajonaJapanese
+
KirvxFrench
+
saschadGerman
+
cmgustavo83Spanish
+
RussianNeuroMancerRussian
+
HostFatItalian
+
xm2hiChinese
+
Pirx1618Polish
+
mareksipCzech
+
+
+

+ We’re always looking for translation contributions! You can make corrections or help to make this app available in your native language by joining our community on Crowdin. + +

+ + Don't see your language on Crowdin? Contact the Owner on Crowdin! We'd love to support your language. + +
+
+
diff --git a/www/views/allAddresses.html b/www/views/allAddresses.html new file mode 100644 index 000000000..123925845 --- /dev/null +++ b/www/views/allAddresses.html @@ -0,0 +1,35 @@ + + + {{'All Addresses' | translate}} + + + + + +
+
+ Translation Credits +
+
kinoshitajonaJapanese
+
KirvxFrench
+
saschadGerman
+
cmgustavo83Spanish
+
RussianNeuroMancerRussian
+
HostFatItalian
+
xm2hiChinese
+
Pirx1618Polish
+
mareksipCzech
+
+
+

+ We’re always looking for translation contributions! You can make corrections or help to make this app available in your native language by joining our community on Crowdin. + +

+ + Don't see your language on Crowdin? Contact the Owner on Crowdin! We'd love to support your language. + +
+
+
diff --git a/www/views/tab-receive.html b/www/views/tab-receive.html index 31b386f28..9a2678faf 100644 --- a/www/views/tab-receive.html +++ b/www/views/tab-receive.html @@ -71,12 +71,13 @@ -
+
... {{walletAddrs[wallet.id]}} +