add routes and views
This commit is contained in:
parent
b18dcc4734
commit
7a63bfcc72
6 changed files with 109 additions and 1 deletions
6
src/js/controllers/addresses.js
Normal file
6
src/js/controllers/addresses.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('addressesController', function($scope, $stateParams, profileService, walletService) {
|
||||
$scope.wallet = profileService.getWallet($stateParams.walletId);
|
||||
|
||||
});
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
35
www/views/addresses.html
Normal file
35
www/views/addresses.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<ion-view class="settings" hide-tabs>
|
||||
<ion-nav-bar class="bar-royal">
|
||||
<ion-nav-title>{{'Wallet Addresses' | translate}}</ion-nav-title>
|
||||
<ion-nav-back-button>
|
||||
</ion-nav-back-button>
|
||||
</ion-nav-bar>
|
||||
|
||||
<ion-content>
|
||||
<div class="list">
|
||||
<div class="item item-divider" translate>
|
||||
Translation Credits
|
||||
</div>
|
||||
<div class="item">kinoshitajona<span class="item-note" translate>Japanese</span></div>
|
||||
<div class="item">Kirvx<span class="item-note" translate>French</span></div>
|
||||
<div class="item">saschad<span class="item-note" translate>German</span></div>
|
||||
<div class="item">cmgustavo83<span class="item-note" translate>Spanish</span></div>
|
||||
<div class="item">RussianNeuroMancer<span class="item-note" translate>Russian</span></div>
|
||||
<div class="item">HostFat<span class="item-note" translate>Italian</span></div>
|
||||
<div class="item">xm2hi<span class="item-note" translate>Chinese</span></div>
|
||||
<div class="item">Pirx1618<span class="item-note" translate>Polish</span></div>
|
||||
<div class="item">mareksip<span class="item-note" translate>Czech</span></div>
|
||||
</div>
|
||||
<div class="padding">
|
||||
<p>
|
||||
<span translate>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.</span>
|
||||
<button class="button button-standard button-primary" ng-click="openExternalLink(true, 'Open Translation Community', 'You can make contributions by signing up on our Crowdin community translation website. We’re looking forward to hearing from you!
|
||||
', 'Open Crowdin', 'Go Back')" translate>Contribute Translations
|
||||
</button>
|
||||
</p>
|
||||
<span translate>
|
||||
Don't see your language on Crowdin? Contact the Owner on Crowdin! We'd love to support your language.
|
||||
</span>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
35
www/views/allAddresses.html
Normal file
35
www/views/allAddresses.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<ion-view class="settings" hide-tabs>
|
||||
<ion-nav-bar class="bar-royal">
|
||||
<ion-nav-title>{{'All Addresses' | translate}}</ion-nav-title>
|
||||
<ion-nav-back-button>
|
||||
</ion-nav-back-button>
|
||||
</ion-nav-bar>
|
||||
|
||||
<ion-content>
|
||||
<div class="list">
|
||||
<div class="item item-divider" translate>
|
||||
Translation Credits
|
||||
</div>
|
||||
<div class="item">kinoshitajona<span class="item-note" translate>Japanese</span></div>
|
||||
<div class="item">Kirvx<span class="item-note" translate>French</span></div>
|
||||
<div class="item">saschad<span class="item-note" translate>German</span></div>
|
||||
<div class="item">cmgustavo83<span class="item-note" translate>Spanish</span></div>
|
||||
<div class="item">RussianNeuroMancer<span class="item-note" translate>Russian</span></div>
|
||||
<div class="item">HostFat<span class="item-note" translate>Italian</span></div>
|
||||
<div class="item">xm2hi<span class="item-note" translate>Chinese</span></div>
|
||||
<div class="item">Pirx1618<span class="item-note" translate>Polish</span></div>
|
||||
<div class="item">mareksip<span class="item-note" translate>Czech</span></div>
|
||||
</div>
|
||||
<div class="padding">
|
||||
<p>
|
||||
<span translate>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.</span>
|
||||
<button class="button button-standard button-primary" ng-click="openExternalLink(true, 'Open Translation Community', 'You can make contributions by signing up on our Crowdin community translation website. We’re looking forward to hearing from you!
|
||||
', 'Open Crowdin', 'Go Back')" translate>Contribute Translations
|
||||
</button>
|
||||
</p>
|
||||
<span translate>
|
||||
Don't see your language on Crowdin? Contact the Owner on Crowdin! We'd love to support your language.
|
||||
</span>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
|
@ -71,12 +71,13 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bit-address" class="row border-top">
|
||||
<div id="bit-address" class="row border-top" ng-click="showAddresses()">
|
||||
<div class="center-block bit-address text-center" ng-repeat="wallet in wallets track by $index" ng-class="walletPosition($index)">
|
||||
<div class="item item-icon-left item-icon-right">
|
||||
<i class="icon icon-svg receive-tab-bitcoin-icon"><img src="img/icon-bitcoin-symbol.svg"></i>
|
||||
<span class="bit-address-gen-address" ng-if="generatingAddress">...</span>
|
||||
<span class="bit-address-gen-address" ng-if="!generatingAddress" copy-to-clipboard="walletAddrs[wallet.id]">{{walletAddrs[wallet.id]}}</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue