Update sound to play on the screens they suppose to play only

This commit is contained in:
Sebastiaan Pasma 2018-06-29 15:11:34 +02:00
commit f89499047a
3 changed files with 15 additions and 5 deletions

View file

@ -130,8 +130,11 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
}
}
$scope.paymentReceivedCoin = $scope.wallet.coin;
$scope.$apply(function () {
if ($state.current.name === "tabs.receive")
soundService.play('misc/payment_received.mp3');
$scope.$apply(function () {
$scope.showingPaymentReceived = true;
});
}