revert code cleanup
This commit is contained in:
parent
f69b72b24f
commit
f86ab3faec
1 changed files with 4 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ angular.module('copayApp.controllers').controller('walletSelectorController', fu
|
||||||
sendFlowService.popState();
|
sendFlowService.popState();
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.params = sendFlowService.getState();
|
var stateParams = sendFlowService.getState();
|
||||||
|
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
priceDisplayAsFiat = config.priceDisplay === 'fiat';
|
priceDisplayAsFiat = config.priceDisplay === 'fiat';
|
||||||
|
|
@ -29,17 +29,18 @@ angular.module('copayApp.controllers').controller('walletSelectorController', fu
|
||||||
$scope.sendFlowTitle = gettextCatalog.getString('Wallet to Wallet Transfer');
|
$scope.sendFlowTitle = gettextCatalog.getString('Wallet to Wallet Transfer');
|
||||||
break;
|
break;
|
||||||
case 'tabs.send.destination':
|
case 'tabs.send.destination':
|
||||||
if ($scope.params.fromWalletId) {
|
if (stateParams.fromWalletId) {
|
||||||
$scope.sendFlowTitle = gettextCatalog.getString('Wallet to Wallet Transfer');
|
$scope.sendFlowTitle = gettextCatalog.getString('Wallet to Wallet Transfer');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!$scope.params.thirdParty) {
|
if (!stateParams.thirdParty) {
|
||||||
$scope.sendFlowTitle = gettextCatalog.getString('Send');
|
$scope.sendFlowTitle = gettextCatalog.getString('Send');
|
||||||
}
|
}
|
||||||
// nop
|
// nop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.params = sendFlowService;
|
||||||
$scope.coin = false; // Wallets to show (for destination screen or contacts)
|
$scope.coin = false; // Wallets to show (for destination screen or contacts)
|
||||||
$scope.type = $scope.params['fromWalletId'] ? 'destination' : 'origin'; // origin || destination
|
$scope.type = $scope.params['fromWalletId'] ? 'destination' : 'origin'; // origin || destination
|
||||||
fromWalletId = $scope.params['fromWalletId'];
|
fromWalletId = $scope.params['fromWalletId'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue