wallet to wallet back-button

This commit is contained in:
Sebastiaan Pasma 2018-07-12 17:40:31 +02:00
commit a3ef304e09
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
3 changed files with 13 additions and 0 deletions

View file

@ -7,6 +7,13 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
$scope.displayBalanceAsFiat = true;
$scope.walletSelectorTitleForce = true;
$scope.walletHide = function() {
console.log("wallet HIDE");
alert('test');
};
$scope.addContact = function() {
$state.go('tabs.settings').then(function() {
$state.go('tabs.addressbook').then(function() {

View file

@ -13,12 +13,16 @@ angular.module('copayApp.directives')
wallets: '=walletSelectorWallets',
selectedWallet: '=walletSelectorSelectedWallet',
onSelect: '=walletSelectorOnSelect',
onHide: '=walletSelectorOnHide',
displayBalanceAsFiat : '=walletSelectorDisplayBalanceAsFiat'
},
link: function(scope, element, attrs) {
console.log(scope, element, attrs);
scope.hide = function() {
scope.show = false;
if (typeof scope.onHide === "function") {
scope.onHide()
}
};
scope.selectWallet = function(wallet) {
$timeout(function() {

View file

@ -124,6 +124,7 @@
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
</wallet-selector>
<wallet-selector
wallet-selector-on-hide="showWalletSelector"
wallet-selector-title="walletSelectorTitleTo"
wallet-selector-wallets="walletsBch"
wallet-selector-selected-wallet="wallet"
@ -132,6 +133,7 @@
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
</wallet-selector>
<wallet-selector
wallet-selector-on-hide="showWalletSelector"
wallet-selector-title="walletSelectorTitleTo"
wallet-selector-wallets="walletsBtc"
wallet-selector-selected-wallet="wallet"