Ref tab-receive. Fix UI standar alignment

This commit is contained in:
Gustavo Maximiliano Cortez 2017-05-23 15:58:25 -03:00
commit 6eedcd01a6
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 47 additions and 17 deletions

View file

@ -98,6 +98,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
var selectedWallet = checkSelectedWallet($scope.wallet, $scope.wallets);
$scope.onWalletSelect(selectedWallet);
$scope.showShareButton = platformInfo.isCordova ? (platformInfo.isIOS ? 'iOS' : 'Android') : null;
listeners = [
$rootScope.$on('bwsEvent', function(e, walletId, type, n) {
// Update current address
@ -132,8 +134,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
$scope.showWallets = true;
};
$scope.copyToClipboard = function() {
if ($scope.isCordova) return 'bitcoin:' + $scope.addr;
else return $scope.addr;
$scope.shareAddress = function() {
if (!$scope.isCordova) return;
window.plugins.socialsharing.share('bitcoin:' + $scope.addr, null, null, null);
}
});