Showing From wallet in send tab.

This commit is contained in:
Brendon Duncan 2018-08-09 11:11:10 +12:00
commit be2bc4cddb

View file

@ -208,6 +208,13 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {
console.log('tab-send.beforeEnter sendFlowService.fromWalletId:', sendFlowService.fromWalletId);
var fromWalletId = sendFlowService.fromWalletId;
if (fromWalletId) {
$scope.fromWallet = profileService.getWallet(fromWalletId);
} else {
$scope.fromWallet = null;
}
$scope.isIOS = platformInfo.isIOS && platformInfo.isCordova;
$scope.showWalletsBch = $scope.showWalletsBtc = $scope.showWallets = false;