Show my address button.
This commit is contained in:
parent
aa75ba18d6
commit
b3e34483b6
2 changed files with 10 additions and 8 deletions
|
|
@ -4,6 +4,8 @@ angular.module('copayApp.controllers').controller('shapeshiftController', functi
|
||||||
var walletsBtc = [];
|
var walletsBtc = [];
|
||||||
var walletsBch = [];
|
var walletsBch = [];
|
||||||
|
|
||||||
|
$scope.showMyAddress = showMyAddress;
|
||||||
|
|
||||||
function generateAddress(wallet, cb) {
|
function generateAddress(wallet, cb) {
|
||||||
if (!wallet) return;
|
if (!wallet) return;
|
||||||
walletService.getAddress(wallet, false, function(err, addr) {
|
walletService.getAddress(wallet, false, function(err, addr) {
|
||||||
|
|
@ -41,14 +43,6 @@ angular.module('copayApp.controllers').controller('shapeshiftController', functi
|
||||||
$ionicNavBarDelegate.showBar(true);
|
$ionicNavBarDelegate.showBar(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.showFromWalletSelector = function() {
|
|
||||||
$scope.showFromWallets = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.showToWalletSelector = function() {
|
|
||||||
$scope.showToWallets = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
// This could probably be enhanced refactoring the routes abstract states
|
// This could probably be enhanced refactoring the routes abstract states
|
||||||
$scope.createWallet = function() {
|
$scope.createWallet = function() {
|
||||||
$state.go('tabs.home').then(function() {
|
$state.go('tabs.home').then(function() {
|
||||||
|
|
@ -81,4 +75,11 @@ angular.module('copayApp.controllers').controller('shapeshiftController', functi
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showMyAddress() {
|
||||||
|
$state.go('tabs.home').then(function() {
|
||||||
|
$state.go('tabs.receive');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
<div ng-show="!hasWallets" translate>To get started, you'll need to create a bitcoin wallet and get some bitcoin.</div>
|
<div ng-show="!hasWallets" translate>To get started, you'll need to create a bitcoin wallet and get some bitcoin.</div>
|
||||||
<div class="padding buttons">
|
<div class="padding buttons">
|
||||||
<button class="button button-standard button-green" ng-click="buyBitcoin()" ng-show="!walletsWithFunds.length" translate>Buy Bitcoin now</button>
|
<button class="button button-standard button-green" ng-click="buyBitcoin()" ng-show="!walletsWithFunds.length" translate>Buy Bitcoin now</button>
|
||||||
|
<button class="button button-standard button-white" ng-click="showMyAddress()" ng-show="!walletsWithFunds.length" translate>Show my address</button>
|
||||||
<button class="button button-standard button-green" ng-click="createWallet()" ng-show="!hasWallets" translate>Create bitcoin wallet</button>
|
<button class="button button-standard button-green" ng-click="createWallet()" ng-show="!hasWallets" translate>Create bitcoin wallet</button>
|
||||||
<button class="button button-standard button-shapeshift track_shapeshift_start_click" ng-click="shapeshift()" ng-show="walletsWithFunds.length" translate>Start ShapeShift</button>
|
<button class="button button-standard button-shapeshift track_shapeshift_start_click" ng-click="shapeshift()" ng-show="walletsWithFunds.length" translate>Start ShapeShift</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue