mirror of https://github.com/BTCPrivate/copay.git
add navigation
This commit is contained in:
parent
3e156e7129
commit
3068f41a66
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('addressesController', function($scope, $stateParams, $timeout, $ionicScrollDelegate, configService, popupService, gettextCatalog, ongoingProcess, lodash, profileService, walletService) {
|
angular.module('copayApp.controllers').controller('addressesController', function($scope, $stateParams, $state, $timeout, $ionicScrollDelegate, configService, popupService, gettextCatalog, ongoingProcess, lodash, profileService, walletService) {
|
||||||
var UNUSED_ADDRESS_LIMIT = 5;
|
var UNUSED_ADDRESS_LIMIT = 5;
|
||||||
var BALANCE_ADDRESS_LIMIT = 5;
|
var BALANCE_ADDRESS_LIMIT = 5;
|
||||||
var config;
|
var config;
|
||||||
|
@ -60,6 +60,12 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.viewAllAddresses = function() {
|
||||||
|
$state.go('tabs.receive.allAddresses', {
|
||||||
|
walletId: $scope.wallet.id
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$scope.showInformation = function() {
|
$scope.showInformation = function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.showInfo = !$scope.showInfo;
|
$scope.showInfo = !$scope.showInfo;
|
||||||
|
|
|
@ -61,12 +61,17 @@
|
||||||
i {
|
i {
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
color: #434CBE;
|
color: #647ce8;
|
||||||
}
|
}
|
||||||
a {
|
span {
|
||||||
|
color: #647ce8;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
i {
|
||||||
|
font-size: 35px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.item-note {
|
.item-note {
|
||||||
color: $light-gray;
|
color: $light-gray;
|
||||||
|
|
|
@ -51,8 +51,8 @@
|
||||||
<div class="addr-balance">{{w.balanceStr}}</div>
|
<div class="addr-balance">{{w.balanceStr}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-icon-right view-all" ng-show="viewAll.value">
|
<div class="item item-icon-right view-all" ng-show="viewAll.value" ng-click="viewAllAddresses()">
|
||||||
<a ui-sref="tabs.receive.allAddresses({walletId: wallet.id})" translate>View All Addresses</a>
|
<span translate>View All Addresses</span>
|
||||||
<i class="icon ion-ios-arrow-thin-right"></i>
|
<i class="icon ion-ios-arrow-thin-right"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue