wallet to wallet back-button
This commit is contained in:
parent
554d40d08f
commit
a3ef304e09
3 changed files with 13 additions and 0 deletions
|
|
@ -7,6 +7,13 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
$scope.displayBalanceAsFiat = true;
|
$scope.displayBalanceAsFiat = true;
|
||||||
$scope.walletSelectorTitleForce = true;
|
$scope.walletSelectorTitleForce = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$scope.walletHide = function() {
|
||||||
|
console.log("wallet HIDE");
|
||||||
|
alert('test');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.addContact = function() {
|
$scope.addContact = function() {
|
||||||
$state.go('tabs.settings').then(function() {
|
$state.go('tabs.settings').then(function() {
|
||||||
$state.go('tabs.addressbook').then(function() {
|
$state.go('tabs.addressbook').then(function() {
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,16 @@ angular.module('copayApp.directives')
|
||||||
wallets: '=walletSelectorWallets',
|
wallets: '=walletSelectorWallets',
|
||||||
selectedWallet: '=walletSelectorSelectedWallet',
|
selectedWallet: '=walletSelectorSelectedWallet',
|
||||||
onSelect: '=walletSelectorOnSelect',
|
onSelect: '=walletSelectorOnSelect',
|
||||||
|
onHide: '=walletSelectorOnHide',
|
||||||
displayBalanceAsFiat : '=walletSelectorDisplayBalanceAsFiat'
|
displayBalanceAsFiat : '=walletSelectorDisplayBalanceAsFiat'
|
||||||
},
|
},
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
console.log(scope, element, attrs);
|
console.log(scope, element, attrs);
|
||||||
scope.hide = function() {
|
scope.hide = function() {
|
||||||
scope.show = false;
|
scope.show = false;
|
||||||
|
if (typeof scope.onHide === "function") {
|
||||||
|
scope.onHide()
|
||||||
|
}
|
||||||
};
|
};
|
||||||
scope.selectWallet = function(wallet) {
|
scope.selectWallet = function(wallet) {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@
|
||||||
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
|
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
|
||||||
</wallet-selector>
|
</wallet-selector>
|
||||||
<wallet-selector
|
<wallet-selector
|
||||||
|
wallet-selector-on-hide="showWalletSelector"
|
||||||
wallet-selector-title="walletSelectorTitleTo"
|
wallet-selector-title="walletSelectorTitleTo"
|
||||||
wallet-selector-wallets="walletsBch"
|
wallet-selector-wallets="walletsBch"
|
||||||
wallet-selector-selected-wallet="wallet"
|
wallet-selector-selected-wallet="wallet"
|
||||||
|
|
@ -132,6 +133,7 @@
|
||||||
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
|
wallet-selector-display-balance-as-fiat="displayBalanceAsFiat">
|
||||||
</wallet-selector>
|
</wallet-selector>
|
||||||
<wallet-selector
|
<wallet-selector
|
||||||
|
wallet-selector-on-hide="showWalletSelector"
|
||||||
wallet-selector-title="walletSelectorTitleTo"
|
wallet-selector-title="walletSelectorTitleTo"
|
||||||
wallet-selector-wallets="walletsBtc"
|
wallet-selector-wallets="walletsBtc"
|
||||||
wallet-selector-selected-wallet="wallet"
|
wallet-selector-selected-wallet="wallet"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue