Merge pull request #262 from Bitcoin-com/wallet/task/537
Wallet/task/537
This commit is contained in:
commit
4cba8e1298
4 changed files with 10 additions and 4 deletions
|
|
@ -214,6 +214,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
var j = 0;
|
var j = 0;
|
||||||
|
|
||||||
lodash.each(wallets, function(wallet) {
|
lodash.each(wallets, function(wallet) {
|
||||||
|
walletService.invalidateCache(wallet); // Temporary solution, to have the good balance, when we ask to reload the wallets.
|
||||||
walletService.getStatus(wallet, {}, function(err, status) {
|
walletService.getStatus(wallet, {}, function(err, status) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,10 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
soundService.play('misc/payment_received.mp3');
|
soundService.play('misc/payment_received.mp3');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify new tx
|
||||||
|
$scope.$emit('bwsEvent', $scope.wallet.id);
|
||||||
|
|
||||||
|
|
||||||
$scope.$apply(function () {
|
$scope.$apply(function () {
|
||||||
$scope.showingPaymentReceived = true;
|
$scope.showingPaymentReceived = true;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -28,14 +28,15 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data) {
|
$scope.$on("$ionicView.enter", function(event, data) {
|
||||||
|
|
||||||
|
var stateParams = sendFlowService.getState();
|
||||||
|
$scope.fromWallet = profileService.getWallet(stateParams.fromWalletId);
|
||||||
|
|
||||||
clipboardService.readFromClipboard(function(text) {
|
clipboardService.readFromClipboard(function(text) {
|
||||||
if (text.length > 200) {
|
if (text.length > 200) {
|
||||||
text = text.substring(0, 200);
|
text = text.substring(0, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
var stateParams = sendFlowService.getState();
|
|
||||||
$scope.fromWallet = profileService.getWallet(stateParams.fromWalletId);
|
|
||||||
|
|
||||||
$scope.clipboardHasAddress = false;
|
$scope.clipboardHasAddress = false;
|
||||||
$scope.clipboardHasContent = false;
|
$scope.clipboardHasContent = false;
|
||||||
if ((text.indexOf('bitcoincash:') === 0 || text[0] === 'C' || text[0] === 'H' || text[0] === 'p' || text[0] === 'q') && text.replace('bitcoincash:', '').length === 42) { // CashAddr
|
if ((text.indexOf('bitcoincash:') === 0 || text[0] === 'C' || text[0] === 'H' || text[0] === 'p' || text[0] === 'q') && text.replace('bitcoincash:', '').length === 42) { // CashAddr
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
// to both being in value. Don't want to use previous currency value.
|
// to both being in value. Don't want to use previous currency value.
|
||||||
// Try to extract currency from value..
|
// Try to extract currency from value..
|
||||||
var currencySplit = $scope.value.split(" ");
|
var currencySplit = $scope.value.split(" ");
|
||||||
if (currencySplit.length === 2) {
|
if (currencySplit.length === 2 && !$scope.currency) {
|
||||||
$scope.currency = currencySplit[1];
|
$scope.currency = currencySplit[1];
|
||||||
}
|
}
|
||||||
$scope.currency = $scope.currency || '';
|
$scope.currency = $scope.currency || '';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue